View source: R/build_stan_data.R
build_stan_data | R Documentation |
Builds stan data for sampling depending on the selected model
build_stan_data(
serosurvey,
model_type = "constant",
foi_prior = sf_uniform(),
foi_index = NULL,
is_log_foi = FALSE,
foi_sigma_rw = sf_none(),
is_seroreversion = FALSE,
seroreversion_prior = sf_none()
)
serosurvey |
|
model_type |
Type of the model. Either "constant", "age" or "time" |
foi_prior |
Force-of-infection distribution specified by means of the helper functions. Currently available options are:
|
foi_index |
Integer vector specifying the age-groups for which Force-of-Infection values will be estimated. It can be specified by means of get_foi_index |
is_log_foi |
Boolean to set logarithmic scale in the FoI |
foi_sigma_rw |
Prior distribution for the standard deviation of the Force-of-Infection. Currently available options are:
|
is_seroreversion |
Boolean specifying whether to include seroreversion rate estimation in the model |
seroreversion_prior |
seroreversion distribution specified by means of the helper functions. Currently available options are:
|
List with necessary data for sampling the specified model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.