Selection of penalty parameter based on cross-validation
1 | select_kmax(X, k, fold = min(nrow(X), 10))
|
X |
n-by-p data matrix |
k |
vector of penalties for cross-validation |
fold |
number of folds for cross-validation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.