Description Usage Arguments Value Author(s) Examples
Fit regression using 10-fold CV with the 1 standard deviation rule and compute predictions.
1 | yhat_gel(dfTrain, dfTest, alpha = 1)
|
dfTrain |
Data frame for training data. Last column must be the output variable. |
dfTest |
Data frame for test data. Last column must be the output variable. |
alpha |
Must be in [0,1], alpha=1 for LASSO (default), alpha=0 for ridge regression. Another recommended choice is alpha=0.5. |
The predictions for the test sample
A. I. McLeod
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.