View source: R/plot_seromodel.R
extract_central_estimates | R Documentation |
Extracts central estimates from stan_fit object for specified parameter
extract_central_estimates(
seromodel,
serosurvey,
alpha = 0.05,
par_name = "foi_vector"
)
seromodel |
stan_fit object obtained from sampling a model with fit_seromodel |
serosurvey |
|
alpha |
1 - alpha indicates the credibility level to be used |
par_name |
String specifying the parameter to be extracted
from |
A dataframe with the following columns
median
Median of the samples computed as the 0.5 quantile
lower
Lower quantile alpha
upper
Upper quantile 1 - alpha
data(veev2012)
seromodel <- fit_seromodel(veev2012, iter = 100)
central_estimates <- extract_central_estimates(
seromodel,
veev2012,
par_name = "foi"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.