rLASSO using path algorithm, where an optimal tuning parameter is found by cross validation
1 |
X |
design matrix |
Y |
outcome vector |
lambda |
a vector of tuning parameters. If left unspecified, using the sequence of numbers from 0 to the smallest tuning parameter such that the solution is the zero vector |
nlambda |
the number of the sequence of the tuning parameters. |
nfolds |
number of folds in the cross-validation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.