tts.var | R Documentation |
tts.caret
It estimate VAR model by tts.caret
, and generates an object list for multistep forecasts.
tts.var(
data,
p,
method,
train.end,
type,
trace=TRUE)
data |
The time series object of the VAR dataset, for example, |
p |
The lag order as in VAR(p). |
method |
The train_model_list of |
train.end |
The end date of training data, must be specificed.The default dates of train.start and test.end are the start and the end of input data; and the test.start is the 1-period next of train.end. |
type |
The time dummies variables. We have four selection: |
trace |
Whether to print the looping information. The defaut is TRUE. |
This function calls tts.caret
of package to execute VAR estimation.
output |
Output list object generated. |
method |
The method used. |
type |
Type of time dummies used, inherited from type of |
data |
The complete data structure |
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
data(macrodata)
y=timeSeries::as.timeSeries(macrodata[,-1])
VLD=window(y,start="2019-01-01",end=end(y))
#OUT1=tts.var(data=y,
# p=3,
# method="enet",
# train.end="2018-12-01",
# type=c("none","trend","season","both")[1])
#fcst_ml=iForecast.var(OUT1, n.ahead=nrow(VLD))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.