View source: R/ridge_regression.R
find_best_lambda | R Documentation |
This function uses a randomly chosen test and training set
find_best_lambda(train_dat, test_dat, response, lambdas)
train_dat |
A data frame to construct the model from |
test_dat |
A data frame to test the model on |
response |
The name of a response variable in the data frame (unquoted) |
lambda |
A vector of penalty terms to try |
No interaction terms are included.
A data frame of penalty terms and resulting errors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.