wrapper function for extracting posterior samples from the Bayesian B-spline model

extract_draws(fit, df)

Arguments

fit

cmdstan fit object of a Bayesian B-spline model

df

data prepared using the data_prep function used to fit the model

Value

a list containing draws_matrix of posterior draws for parameters of interest; parameters return depend on the model fit

Examples

#reference-only
df <- data_prep(sim_ref)
#> No values provided in df_unk, skipping validation and estimating reference series only

#estimate model
fit <- est_model(df, show_messages = FALSE, show_exceptions = FALSE)

#extract draws
draws <- extract_draws(fit)