Description Usage Arguments Value
Optimizing the ridge parameter lambda by cross validation
1 2 3 4 5 6 7 | optimization_lambda(
form,
dat,
folds = 10,
lambdas = seq(0, 1, 0.1),
contrasts = NULL
)
|
form |
A formula with the format of "Y ~ .". |
dat |
A dataframe. |
folds |
The number of folds to cross validate |
lambdas |
A list of the ridge penalty term lambda. |
contrasts |
A list of contrasts. |
The ridge regression parameter lambda that minimizes mse.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.