24
$\begingroup$

I just found "Robust Fitting of Linear Models" rlm() function in the MASS library.

I would like to know the difference between this function and the standard linear regression function, lm().

Could someone give me a short explanation?

$\endgroup$
0

3 Answers 3

17
$\begingroup$

It (rlm) is for robust linear models. It is describe in Venables & Ripley. However, details of the robust calculations would not fit in a "short answer": you need to look into several papers by Ripley, Tukey, and others.

It a form of robust regression that uses M-estimators.

Check out this paper by Ripley for more information: http://www.stats.ox.ac.uk/pub/StatMeth/Robust.pdf

$\endgroup$
1
  • 6
    $\begingroup$ You can also see bits and pieces of the discussion in the relevant book (Venables and Ripley MASS) on Google books: books.google.com/… -- if you want the whole thing you need to buy the book or find it at the library ... very briefly, robust regression downweights the effects of outliers on the analysis. $\endgroup$
    – Ben Bolker
    Commented Jul 31, 2011 at 19:20
7
$\begingroup$

lm function uses Ordinary Least Squares(OLS) method for reducing the residuals. whereas rlm function uses M-estimators. OLS is very sensitive to outliers, M-estimation method is not.

$\endgroup$
4
$\begingroup$

Short answer:
In rlm(), points are not treated equally. The weight of each point would be adjusted in an iterative process. rlm() is less sensitive to outliers, as outliers will get reduced weight.

If you want a short answer for the math, I suggest an article provided by Johns Hopkins Bloomberg School of Public Health

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.