View source: R/main_function.R
cvVAR_ENET | R Documentation |
This internal function performs cross validation using elastic net (ENET)
estimation via the glmnet
package. It supports parallel processing if requested.
cvVAR_ENET(X, y, nvar, opt)
X |
A numeric matrix of predictors. |
y |
Numeric vector of responses. |
nvar |
Integer. The number of variables in the original VAR (number of columns in data). |
opt |
List. A list of options including:
|
An object of class cv.glmnet
as returned by glmnet::cv.glmnet
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.