Description Usage Arguments Details Value See Also Examples
This is our own created ridge regression function
1 |
formula |
A formula on the form response~first_predictor + second_predictor + ... . The response variable and all predictors must be in the data set provided. |
data |
The data set from which to choose the predictors and the response variable in the formula. |
lambda |
The value of lambda, lambda = 0 as default which is equals to OLS. |
This is a linear regression with one extra shrinkage parameter(lambda). Note that the data should be normalized before using this function.
An object of S3-type class "ridgeregr": A list of nine elements, including fitted values and residuals.
The methods that use the ridgeregr class:predict.ridgeregr.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.