Extracts a custom set of parameters from a stan object and adds
stratification and dates where appropriate.
extract_parameter_samples(
stan_fit,
data,
reported_dates,
imputed_dates,
reported_inf_dates,
drop_length_1 = FALSE,
merge = FALSE
)
A list of <data.frame>
's each containing the posterior of a
parameter
A <stanfit>
or <CmdStanMCMC>
object as returned by
fit_model()
.
A list of the data supplied to the fit_model()
call.
A vector of dates to report estimates for.
A vector of dates to report imputed reports for.
A vector of dates to report infection estimates for.
Logical; whether the first dimension should be dropped if it is off length 1; this is necessary when processing simulation results.
if TRUE, merge samples and data so that parameters can be extracted from data.