Skip to content
Prev 170 / 523 Next

[RsR] Questions about interpreting lmRob output

Here are some quick answers to your questions.  Please let me know if  
you would like more details.

Kjell
On 13 Nov 2007, at 20:59, Jenifer Larson-Hall wrote:

            
The Robust Library was originally developed for S-PLUS and has only  
recently (sometime in the last 1-2 years) been made available for R.
The test for bias is a diagnostic for the fitting procedure and is not  
directly applicable to the fitted model.  It is computed by the  
function test.lmRob - if you're curious take a look at the reference  
in the help file.
S-PLUS and R handle generic functions slightly differently.  I thought  
I had this working but it looks like I missed something.  Sorry.
For some reason lmRob is having trouble fitting the model G1L1WR ~  
PAL2 * KL2WR * NS - PAL2:KL2WR:NS.  This usually happens because more  
than half of the data fits the model perfectly (although I'm not sure  
that's what's happening in this case).  When the fitting fails  
step.lmRob and drop1.lmRob return the most recently selected model.   
Since this example fails in the first iteration it just returns the  
input model.
The plots are designed to compare robust and least squares fits of the  
same model.  Try this:

 > m1.comp <- fit.models(list(Robust = "lmRob", "Least Squares" =  
"lm"), formula = G1L1WR ~ PAL2*KL2WR*NS, data = lafrance.na)
 > plot(m1.comp)

then choices 9 and 10 make more sense.
The goal of the robust library is ease of use so, by default, it tries  
to abstract the specific choice of estimator as much as possible.   
lmRob tries to choose a combination of estimators that is sensible  
(although probably not the best) for the given model.  You may also  
want to look at the R package robustbase which takes a more technical  
approach to robust fitting.