generate_viable_start_pars | R Documentation |
This function is used to generate random starting values for the MCMC procedure.
generate_viable_start_pars(
parTab,
obs_dat,
CREATE_POSTERIOR_FUNC,
INCIDENCE_FUNC,
PRIOR_FUNC,
use_pos = FALSE,
...
)
obs_dat |
Tibble of observed data. Contains two columns, t for time of sample collection and ct for the Ct values. |
CREATE_POSTERIOR_FUNC |
Creates the posterior function used in the MCMC framework for detectable Ct values. |
INCIDENCE_FUNC |
Function that expects a vector of named parameters and returns a vector of daily incidence. |
PRIOR_FUNC |
Function that returns the log prior probability for a given vector of parameter values given the prior means and sds. |
use_pos |
Boolean variable indicating if only positive Ct values i.e, those below a specified threshold, should be used. Set to FALSE by default. |
partab |
Tibble containing parameters corresponding to underlying incidence model (e.g. SEIR, SEEIRR). |
Dataframe containing random starting parameter values that return a finite likelihood.
James Hay, jhay@hsph.harvard.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.