# 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)
mod.resids <- residuals(mod)
# Visualize
plot(mod.resids)
Run the code above in your browser using DataLab