R/lmridge.R

Defines functions lmridge.default lmridge

Documented in lmridge lmridge.default

lmridge <- function(formula, data, K = 0,
                    scaling=c("sc", "scaled", "non", "centered"), ...)
  UseMethod("lmridge")
lmridge.default <- function(formula, data,K = 0,
                            scaling=c("sc", "scaled", "non", "centered"), ...) {
  #    x<-as.matrix(x)
  #    y<-as.matrix(y)

  est <- lmridgeEst(formula, data, K, scaling=scaling, ...)

  #est$fitted.values <- as.vector(est$xs %*% est$coef)
  #est$residuals <- as.vector(est$y - est$fitted.values)

  est$call <- match.call()

  class(est) <- "lmridge"
  est
}

Try the lmridge package in your browser

Any scripts or data that you put into this service are public.

lmridge documentation built on Jan. 15, 2023, 5:06 p.m.