View source: R/create_posterior_func.R
create_post_func_seeirr_combined | R Documentation |
Creates a new function which calculates the posterior probability of a set of parameter values conditional on the Ct data using the combined SEEIRR model. This model uses multiple cross-sectional samples.
create_post_func_seeirr_combined(
parTab,
data,
ts,
INCIDENCE_FUNC = detectable_SEEIRRModel,
PRIOR_FUNC = NULL,
ver = "likelihood"
)
data |
A tibble containing four columns: date for the sample collection date, POS for the number of individuals who test positive, NEG for the number of individuals who test negative, and location for location of sample collection. |
ts |
The times over which the SEEIRR model is solved. Used to subset the modeled prevalence by the sample collection dates. |
INCIDENCE_FUNC |
A function that returns a vector of daily infection probabilities/ incidence. Set to 'detectable_SEEIRRModel' by default. |
PRIOR_FUNC |
A function for the prior distribution. NULL by default. |
ver |
Can be set to 'model' or 'likelihood.' 'model' returns the prevalence from the SEEIRR model rather than the posterior probability. Set to 'likelihood' by default. |
#' @param parTab A vector of model parameters with names corresponding to the parameter control table.
Returns a single log posterior probability or the prevalence from the combined SEEIRR model.
James Hay, jhay@hsph.harvard.edu
Other create posterior functions:
create_post_func_seeirr()
,
create_posterior_func_detectable()
,
create_posterior_func()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.