create_X | R Documentation |
A helper function to create a design matrix to be the input for the machine learning models Requires choosing the number of lags in addition to each variable. Potentially later the number of lags could be a vector of length p. That way the number of lags could be different for each variable.
create_X(data, lags, data_exog = NULL)
data |
A dataframe or matrix of observations. |
lags |
The number of lags of each variable to be included in the design matrix, should be a scaler to apply to all variables or a vector with entries for each column. |
data_exog |
A dataframe or matrix of exogenous observations to be considered
in addition to the lagged columns of |
A design matrix for training/predictions with the machine learning MCUSUM methods.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.