predict_dyn2 | R Documentation |
In other words, in this version, you can supply data frames as arguments and receive a data frame as output. This is a bit friendlier with a map approach.
predict_dyn2(model, train, test, dependentvar)
model |
Typically model fitted with dyn$lm |
train |
Data frame with first column in date format so that function can convert to xts easily for calcs. |
test |
Data frame with first column in date format. |
dependentvar |
Character string naming the dependentvar that is to be grown out iteratively |
created based on http://stackoverflow.com/a/13098860/1770086 also based on the help for dyn, see example at end
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.