Description Usage Arguments Value
View source: R/accuracy.kfold.R
This function it splits the data in k training and test datasets and returns measures of fit for each fold.
1 | accuracy.kfold(df.VAR, k = 5, n_ahead, lags, var_index = 1)
|
df.VAR |
data.frame : data of the VAR (without dates) |
k |
numeric : number of fold cross validations |
n_ahead |
numeric :horizon of forecast |
lags |
numeric : lags of the VAR |
var_index |
numeric : index of the variable to forecast |
a list with fit measures for each fold
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.