Last chance! 50% off unlimited learning
Sale ends in
ridge.reg(y, x, lambda, B = 1, xnew = NULL)
alfa.ridge
. There is also a built-in function available from the MASS library, called lm.ridge
.
Brown P. J. (1994). Measurement, Regression and Calibration. Oxford Science Publications.
ridge.tune, alfa.ridge, ridge.plot
y <- iris[, 1]
x <- iris[, 2:4]
mod1 <- ridge.reg(y, x, lambda = 0.1)
mod2 <- ridge.reg(y, x, lambda = 0)
Run the code above in your browser using DataLab