Function for extracting Bayesian B-spline posteriors
extract_draws.Rd
wrapper function for extracting posterior samples from the Bayesian B-spline 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)
#> [1] "B-spline model indicated, adding additional data values for spline control"
#> 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)