extract_central_estimates {serofoi} | R Documentation |
Extracts central estimates from stan_fit object for specified parameter
Description
Extracts central estimates from stan_fit object for specified parameter
Usage
extract_central_estimates(
seromodel,
serosurvey,
alpha = 0.05,
par_name = "foi_vector"
)
Arguments
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 |
Value
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
Examples
data(veev2012)
seromodel <- fit_seromodel(veev2012, iter = 100)
central_estimates <- extract_central_estimates(
seromodel,
veev2012,
par_name = "foi"
)
[Package serofoi version 1.0.3 Index]