create_Y | R Documentation |
A helper function to create a prediction matrix for use when training the machine learning models. Requires choosing the number of lags so that the prediction and design matrices line up.
create_Y(data, lags)
data |
A dataframe or matrix of observations. |
lags |
The number of lags of each variable, the first row of this matrix will be row lag + 1 of the data. |
A prediction matrix which can be used for training/testing the machine learning MCUSUM methods.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.