Description Usage Arguments Value
View source: R/Setup_functions.R
function estimate a value for the model prior in order to have even mixing. Note, this is based on initial parameter values so may need adjusting.
| 1 2 3 | setup_modelprior(pars_ini, seroout, foi_const_surv, vc_agg3d, pop_agg3d,
  pop_moments_agg, dim_year, dim_age, p_at_survey, P_tot_survey,
  inc_v3d_agg, parameter_type, ign)
 | 
| pars_ini | vector of initial parameters for seroprevalence | 
| seroout | processed serology data | 
| foi_const_surv | vector of additional foi for each survey (R0 model) | 
| vc_agg3d | aggregated vaccination array | 
| pop_agg3d | aggregated population array | 
| pop_moments_agg | population moments aggregated | 
| dim_year | years of interest | 
| dim_age | ages of interest | 
| p_at_survey | population proportion at time of serological survey | 
| P_tot_survey | total population at time of serological survey | 
| inc_v3d_agg | the incidence of vaccination (aggregated) | 
| parameter_type | indexing for the different types of parameters | 
| ign | indices of surveys to ignore in the likelihood- useful for bug hunting | 
Estimate of log model prior for Foi model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.