coef | R Documentation |
Extracts posterior draws of the VAR coefficients from a VAR
model estimated with bvar()
.
## S3 method for class 'bayesianVARs_bvar'
coef(object, ...)
object |
A |
... |
Currently ignored. |
Returns a numeric array of dimension M \times K \times draws
,
where M is the number of time-series, K is the number of covariates per
equation (including the intercept) and draws is the number of stored
posterior draws.
summary.bayesianVARs_draws()
, vcov.bayesianVARs_bvar()
.
# Access a subset of the usmacro_growth dataset
data <- usmacro_growth[,c("GDPC1", "CPIAUCSL", "FEDFUNDS")]
# Estimate a model
mod <- bvar(data, sv_keep = "all", quiet = TRUE)
# Extract posterior draws of VAR coefficients
bvar_coefs <- coef(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.