summary.bvar {BVAR} | R Documentation |
Summary method for Bayesian VARs
Description
Retrieves several outputs of interest, including the median coefficient matrix, the median variance-covariance matrix, and the log-likelihood. Separate summary methods exist for impulse responses and forecasts.
Usage
## S3 method for class 'bvar'
summary(object, ...)
Arguments
object |
A |
... |
Not used. |
Value
Returns a list of class bvar_summary
with elements that can
can be accessed individually:
-
bvar
- thebvar
object provided. -
coef
- coefficient values fromcoef.bvar
. -
vcov
- VCOV values fromvcov.bvar
. -
logLik
- the log-likelihood fromlogLik
.
See Also
Examples
# Access a subset of the fred_qd dataset
data <- fred_qd[, c("CPIAUCSL", "UNRATE", "FEDFUNDS")]
# Transform it to be stationary
data <- fred_transform(data, codes = c(5, 5, 1), lag = 4)
# Estimate a BVAR using one lag, default settings and very few draws
x <- bvar(data, lags = 1, n_draw = 1000L, n_burn = 200L, verbose = FALSE)
summary(x)
[Package BVAR version 1.0.5 Index]