Description Usage Arguments Value Examples
View source: R/optimized-lambda.R
This is a function that attempts the best lambda parameter.
1 | optimized_lambda(form, data, lambdas, fold.num = 10)
|
form |
a formula with the legal format. |
data |
a dataframe provided by the user. |
lambdas |
a set of ridge parameter from which the function searches the best one. |
fold.num |
number of folds divided for the cross validation (default=10). |
a list including the MSE vector, the optimized ridge parameter, and the minimimal MSE which indicates the best lambda.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.