Description Usage Arguments Value
Splitting the data in a traing set and a test set
1 2 | ## S3 method for class 'data'
split(years, trainingPeriod = 2006:2014, testPeriod = 2015)
|
years |
A vector containg the year of each observation |
trainingPeriod |
A vector defining for which time period the model is trained on (default = 2006:2014) |
testPeriod |
Defining for which time period the model is tested on (default = 2015) |
A list containing the training set and the test set
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.