View source: R/utility_functions.R
| vcov.bayesianVARs_bvar | R Documentation | 
Returns the posterior draws of the possibly time-varying variance-covariance
matrix of a VAR estimated via bvar(). Returns the full paths if
sv_keep="all" when calling bvar(). Otherwise, the draws of the
variance-covariance matrix for the last observation are returned, only.
## S3 method for class 'bayesianVARs_bvar'
vcov(object, t = seq_len(nrow(object$logvar)), ...)
object | 
 An object of class   | 
t | 
 Vector indicating which points in time should be extracted, defaults to all.  | 
... | 
 Currently ignored.  | 
An array of class bayesianVARs_draws of dimension T \times M
  \times M \times draws, where T is the number of observations,
M the number of time-series and draws the number of stored
posterior draws.
summary.bayesianVARs_draws, coef.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 the variance-covariance matrix
bvar_vcov <- vcov(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.