Optional wrapper around APRScenario::gen_mats
Arguments
- posterior
A posterior model object.
- specification
The corresponding specification object.
- max_cores
Passed to
APRScenario::gen_mats().
Value
The result of APRScenario::gen_mats(), typically a list
containing matrices used for conditional forecasting.
Examples
if (FALSE) { # \dontrun{
# Requires APRScenario package
data(us_fiscal_lsuw, package = "bsvars")
spec <- bsvars::specify_bsvar$new(us_fiscal_lsuw, p = 1)
post <- bsvars::estimate(spec, S = 5, show_progress = FALSE)
mats <- apr_gen_mats(posterior = post, specification = spec)
} # }