This function has been deprecated. Use
format_simulation_output() for
simulation outputs or get_samples() for estimation outputs instead.
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 simulation.
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; drop dimensions of length 1 in arrays extracted from the stan fit. Used in simulations where there's only 1 realization.
if TRUE, merge samples into a single data.table using rbindlist. If FALSE returns a list of samples by parameter.