View source: R/ridge_regression.R
ridge_regression | R Documentation |
This function computes coefficients for ridge regression All columns of the provided data frame are used as predictors, except the one specified as a response.
ridge_regression(dat, response, lambda)
dat |
A data frame |
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 coefficients
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.