Description Usage Arguments Value References
This function performs reduced-rank ridge regression with the rank and the tuning parameter selected by cross validation.
1 2 3 |
Y |
response matrix. |
X |
design matrix. |
nfold |
the number of folds used in cross validation. Default is 10. |
rankmax |
the maximum rank allowed. |
nlam |
the number of tuning parameter candidates. Default is 100. |
lambda |
the tuning sequence of length |
norder |
a vector of length n that assigns samples to multiple folds
for cross validation. Default is NULL and then |
nest.tune |
a logical value to specify whether to tune the rank and lambda in a nested way. Default is FALSE. |
fold.drop |
the number of folds to drop. Default is 0. |
The function returns a list:
cr_path |
a matrix displays the path of model selection. |
C |
the estimated low-rank coefficient matrix. |
rank |
the selected rank. |
lam |
the selected tuning parameter for ridge penalty. |
Mukherjee, A., & Zhu, J. (2011). Reduced Rank Ridge Regression and Its Kernel Extensions. Statistical analysis and data mining, 4(6), 612–622.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.