powered by
vars::varprd
data.frame
Convert vars::varprd to data.frame
# S3 method for varprd fortify( model, data = NULL, is.date = NULL, ts.connect = FALSE, melt = FALSE, ... )
vars::varprd instance
original dataset, if needed
Logical frag indicates whether the stats::ts is date or not. If not provided, regard the input as date when the frequency is 4 or 12.
stats::ts
Logical frag indicates whether connects original time-series and predicted values
Logical flag indicating whether to melt each timeseries as variable
other arguments passed to methods
if (FALSE) { data(Canada, package = 'vars') d.var <- vars::VAR(Canada, p = 3, type = 'const') fortify(stats::predict(d.var, n.ahead = 50)) }
Run the code above in your browser using DataLab