
Last chance! 50% off unlimited learning
Sale ends in
A plot of the regularised regression coefficients is shown.
ridge.plot(y, x, lambda = seq(0, 5, by = 0.1) )
A numeric vector containing the values of the target variable. If the values are proportions or percentages, i.e. strictly within 0 and 1 they are mapped into R using the logit transformation. In any case, they must be continuous only.
A numeric matrix containing the continuous variables. Rows are samples and columns are features.
A grid of values of the regularisation parameter
A plot with the values of the coefficients as a function of
For every value of
Hoerl A.E. and R.W. Kennard (1970). Ridge regression: Biased estimation for nonorthogonal problems. Technometrics, 12(1): 55-67.
Brown P. J. (1994). Measurement, Regression and Calibration. Oxford Science Publications.
# NOT RUN {
y <- as.vector(iris[, 1])
x <- as.matrix(iris[, 2:4])
ridge.plot(y, x, lambda = seq(0, 2, by = 0.1) )
# }
Run the code above in your browser using DataLab