tsp.var.forecast: Predicts and plot VAR model

View source: R/tsp.var.forecast.R

tsp.var.forecastR Documentation

Predicts and plot VAR model

Description

Predicts and plot VAR model

Usage

tsp.var.forecast(model, n_ahead = 12, color = NULL, n_col = NULL, ...)

Arguments

model

VAR class objects from vars::VAR()

n_ahead

integer, number of periods to forecast

color

color used for min and max values in forecast

n_col

number of columns used in plot

...

arguments passed to vars::predict()

Value

plot from gridExtra::grid.arrange()

Examples

library(vars)
library(tseries.plot)
data("Canada")
model <- VAR(Canada,3)
tsp.var.forecast(model,n_ahead = 4,color = "blue",n_col = 2)


espher1987/tseries.plot documentation built on Nov. 2, 2022, 5:48 p.m.