Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.bvarprd

Plotting Forecasts of BVAR Models


Description

A plot function for objects of class "bvarprd".

Usage

## S3 method for class 'bvarprd'
plot(x, ...)

Arguments

x

an object of class "bvarprd", usually, a result of a call to predict.bvar.

...

further graphical parameters.

Examples

# Load data
data("e1")
e1 <- diff(log(e1)) * 100

# Generate model data
model <- gen_var(e1, p = 2, deterministic = 2,
                 iterations = 100, burnin = 10)

# Add prior specifications
model <- add_priors(model)

# Obtain posterior draws
object <- draw_posterior(model)

# Calculate forecasts
pred <- predict(object, new_D = rep(1, 10))

# Plot forecasts
plot(pred)

bvartools

Bayesian Inference of Vector Autoregressive Models

v0.2.0
GPL (>= 2)
Authors
Franz X. Mohr [aut, cre]
Initial release
2021-04-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.