R/lm.methods.q

Defines functions residuals.lmRob model.matrix.lmRob model.frame.lmRob print.lmRob

residuals.lmRob <- function(object, ...)
{
  oldClass(object) <- "lm"
  residuals(object, ...)
}


deviance.lm <- function (object, ...)
{
  oldClass(object) <- "lm"
  deviance(object, ...)
}


model.matrix.lmRob <- function(object, ...)
{
  oldClass(object) <- "lm"
  model.matrix(object, ...)
}


model.frame.lmRob <- function(formula, ...)
{
  oldClass(formula) <- "lm"
  model.frame(formula, ...)
}


print.lmRob <- function(x, ...) 
{
  oldClass(x) <- "lm"
  print(x, ...)
}

Try the robust package in your browser

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

robust documentation built on May 2, 2019, 5:20 p.m.