R/lmRob.fit.q

Defines functions lmRob.fit

Documented in lmRob.fit

lmRob.fit <- function(x, y, x1.idx = NULL, nrep = NULL, robust.control = NULL,
                      ...)
{
  if(!is.numeric(x)) stop("model matrix must be numeric")
  if(!is.numeric(y)) stop("response must be numeric")

  fit <- lmRob.fit.compute(x, y, x1.idx = x1.idx, nrep = nrep,
                           robust.control = robust.control, ...)

  if(!is.null(fit))
    fit$contrasts <- attr(x, "contrasts")

  fit
}

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.