fortify.varprd | R Documentation |
vars::varprd
to data.frame
Convert vars::varprd
to data.frame
## S3 method for class 'varprd'
fortify(
model,
data = NULL,
is.date = NULL,
ts.connect = FALSE,
melt = FALSE,
...
)
model |
|
data |
original dataset, if needed |
is.date |
Logical frag indicates whether the |
ts.connect |
Logical frag indicates whether connects original time-series and predicted values |
melt |
Logical flag indicating whether to melt each timeseries as variable |
... |
other arguments passed to methods |
data.frame
## Not run:
data(Canada, package = 'vars')
d.var <- vars::VAR(Canada, p = 3, type = 'const')
fortify(stats::predict(d.var, n.ahead = 50))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.