Description Details Fields Methods References Examples
Returns the result of the Ridge Regression
Ridge regression class
lambda
argument lambda a constant for ridge. "a hyperparameter"
formula
formula, is a object of class formula. format y ~ x_1 + x_2 + ... + x_n.
data
data.frame, The data is typically a data.frame. The gieven data set.
coef()
return the ridge regression coefficients ^y ridge
predict(newdata = NULL)
return the predicted values ^y, it should be able to predict for new dataset similar
print()
print out the coefficients and coefficient names, similar as done by the lm class.
Reference Classes: http://adv-r.had.co.nz/R5.html
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.