lmrob(formula, data, subset, weights, na.action,
model = TRUE, x = !control$compute.rd, y = FALSE, singular.ok = TRUE,
contrasts = NULL, offset = NULL, control = lmrob.control(...), ...)as.data.frame to a data frame) containing
the variables in the model. If not found in data, the
variablNAs. The default is set by
the na.action setting of options, and is
TRUE the corresponding
components of the fit (the model frame, the model matrix, the
response) are returned.FALSE (the default in S but
not in R) a singular fit is an error.contrasts.arg
of model.matrix.default.offset term can be included in the
formula instead or as well, and ilist specifying control parameters; use
the function lmrob.control(.) and see its help page.control.lmrob. A list that includes the
following components:TRUE if the IRWLS iterations have convergedlmrob.MM().
It uses an S-estimator (Rousseeuw
and Yohai, 1984) for the errors which
is also computed with a bi-square score function.
The S-estimator is computed using the
Fast-S algorithm of Salibian-Barrera and Yohai (2006), calling the
function lmrob.S.
Standard errors are computed using the
formulas of Croux, Dhaene and Hoorelbeke (2003).lmrob.control;
for the algorithms lmrob.S and lmrob.MM;
and for methods,
summary.lmrob,
print.lmrob, and plot.lmrob.data(coleman)
summary( m1 <- lmrob(Y ~ ., data=coleman) )
data(starsCYG, package = "robustbase")
## Plot simple data and fitted lines
plot(starsCYG)
lmST <- lm(log.light ~ log.Te, data = starsCYG)
(RlmST <- lmrob(log.light ~ log.Te, data = starsCYG))
abline(lmST, col = "red")
abline(RlmST, col = "blue")
summary(RlmST)Run the code above in your browser using DataLab