Generate Model-Observation Comparison Function
Source:R/running_inference.R
generate_comparison_function.Rd
Wraps a call to generate_incidence_comparison()
to produce a likelihood or loss function for comparing model output to observed data.
Arguments
- month
Logical; whether the model and data are aggregated by calendar month.
- age_for_inf
Character; specifies the age group used for inference (e.g.,
"inc_C"
or"inc_A"
).- incidence_observed
A data frame of observed incidence data.
- include_prev
Logical; whether to include prevalence data in the comparison function.
Value
A comparison function object that can be passed to mcstate::pmcmc()
or other inference routines.