Estimate test error of elastic net panel
1 2 3 4 5 6 7 8 9 10 11 12 13 |
X |
nxp matrix - training dataset |
y |
factor - response variable |
alpha |
= 1 (lasso), alpha = 0 (ridge), 0 < alpha < 1 (elastic net penalty) |
lambda |
= strength of elastic net penalty |
folds |
caret list specifying the indicies in the different folds |
progressBar |
a boolean that specifies whether a progress bar should be displayed or not |
family |
"binomial" or "multinomial" |
filter |
= "none" or "p.value" |
topranked |
= 50 (top number of features to select and build a classifier) |
keepVar |
- names of specific variable to keep in model |
weights |
- observational weights; default to 1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.