Skip to content

Robust regression wrapper

Source: R/fitRobust.R ยท Help: ?fitRobust

Provides a simple interface to MASS::rlm for robust estimation.

Usage

fitRobust(model, data = NULL, ...)

Arguments

model
A fitted model of class lm or a formula.
data
Optional data frame if model is a formula.
...
Additional arguments passed to MASS::rlm.

Value

An object of class rlm.

Examples

data(mtcars)
m <- fitRobust(mpg ~ wt + qsec, mtcars)
summary(m)