A wrapper around fastridgeCpp
, for faster computation of the analytical solution for
ridge regression.
fastridge(x, y, weights = rep(1/n, n), lambda, standardize = TRUE)
A vector of coefficient (beta) estimates.
Regressor matrix.
Dependent variable (a numeric vector).
Vector of weights.
Penalty parameter.
Logical. If TRUE
, x is standardized using the weights
.