View source: R/tsp.var.forecast.R
tsp.var.forecast | R Documentation |
Predicts and plot VAR model
tsp.var.forecast(model, n_ahead = 12, color = NULL, n_col = NULL, ...)
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() |
plot from gridExtra::grid.arrange()
library(vars) library(tseries.plot) data("Canada") model <- VAR(Canada,3) tsp.var.forecast(model,n_ahead = 4,color = "blue",n_col = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.