Computes ridge regression coefficients and standard errors using the closed-form solution: \(\hat{\beta} = (X^T X + \lambda I)^{-1} X^T y\)
fit.ridge(x, y, lambda)A list containing:
Ridge regression coefficients (length p)
Standard errors of the coefficients (length p)
A standardized design matrix (n × p)
A centered response vector (n × 1)
A non-negative regularization scalar