Extract posterior draws
Arguments
- fit
A list as produced by
fv_sample().- ...
Additional parameters passed to
cmdstanr::draws()
Value
A cmdstanr::draws() object from the posterior package.
See also
Functions used for postprocessing of model fits
convert_to_stanfit(),
extract_forecast_dates(),
fv_extract_forecast(),
fv_posterior(),
fv_tidy_posterior(),
link_dates_with_posterior(),
link_obs_with_posterior(),
plot.fv_posterior(),
print.fv_posterior(),
quantiles_to_long(),
summary.fv_posterior(),
update_voc_label()
Examples
if (FALSE) { # interactive()
obs <- filter_by_availability(
germany_covid19_delta_obs,
date = as.Date("2021-06-12"),
)
dt <- fv_as_data_list(obs)
inits <- fv_inits(dt)
fit <- fv_sample(dt, init = inits, adapt_delta = 0.99, max_treedepth = 15)
extract_draws(fit)
}