extract_draws: Extract posterior draws

extract_drawsR Documentation

Extract posterior draws

Description

Extract posterior draws

Usage

extract_draws(fit, ...)

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


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)


epiforecasts/forecast.vocs documentation built on May 14, 2023, 2 p.m.