plot.bayesianVARs_fitted {bayesianVARs} | R Documentation |
Visualization of in-sample fit of an estimated VAR.
Description
Visualization of in-sample fit of an estimated VAR.
Usage
## S3 method for class 'bayesianVARs_fitted'
plot(
x,
dates = NULL,
vars = "all",
quantiles = c(0.05, 0.5, 0.95),
n_col = 1L,
...
)
Arguments
x |
A |
dates |
optional vector of dates for labelling the x-axis. The default
values is |
vars |
character vector containing the names of the variables to be
visualized. The default is |
quantiles |
numeric vector indicating which quantiles to plot. |
n_col |
integer indicating the number of columns to use for plotting. |
... |
Currently ignored. |
Value
returns x
invisibly
See Also
fitted method for class 'bayesianVARs_bvar':
fitted.bayesianVARs_bvar()
.Other plotting
plot.bayesianVARs_bvar()
,plot.bayesianVARs_fitted()
,plot.bayesianVARs_predict()
,pairs.bayesianVARs_predict()
,posterior_heatmap()
.
Examples
# 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)
# Simulate predicted historical values including the error term.
pred <- fitted(mod, error_term = TRUE)
# Visualize
plot(pred)
[Package bayesianVARs version 0.1.3 Index]