View source: R/create_posterior_func.R
create_posterior_func_detectable | R Documentation |
Creates a new function which calculates the posterior probability of a set of parameter values conditional on data that include only individuals with detectable PCR values on the sample collection day.
create_posterior_func_detectable(
parTab,
data,
PRIOR_FUNC = NULL,
INCIDENCE_FUNC = NULL,
solve_likelihood = TRUE,
...
)
parTab |
A vector of model parameters with names corresponding to the parameter control table. |
data |
A tibble containing two columns: t for sample time and ct for the Ct values. |
PRIOR_FUNC |
A function for the prior distribution. NULL by default. |
INCIDENCE_FUNC |
A function that returns a vector of daily infection probabilities/ incidence. NULL by default. |
solve_likelihood |
Solves the likelihood. TRUE by default. |
Returns a single log posterior probability.
James Hay, jhay@hsph.harvard.edu
Other create posterior functions:
create_post_func_seeirr_combined()
,
create_post_func_seeirr()
,
create_posterior_func()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.