View source: R/optimal_lambda.R
Selection of optimal penalty strength for Ridge regression model using n-fold cross validation
1 | optimal_lambda(X, y, lambdas, n)
|
X |
the data design matrix |
y |
the response vector |
lambdas |
an array of penalty strengths |
n |
number of folds in cross validation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.