Skip to content
Prev 300741 / 398502 Next

[RsR] How does "rlm" in R decide its "w" weights for each IRLS iteration?

When you give rlm weights (called 'weights', not 'w' on input, though you can abbreviate to 'w'), you need to tell it which of these two possibilities you used. 
If you gave it case numbers, say wt.method="case"; if you gave it inverse variance weights, say wt.method="inv.var".
The default is "inv.var".
There is no input argument 'w' for rlm (see above). 
The output w are a  calculated using the psi function, so between 0 and 1.
The effective weights for the final estimate would then be something like w*weights, using the full name of the input argument (and if I haven't forgotten a square root somewhere). At least, that would work for a simple location estimate (eg rlm(x~1)).
It uses the given psi functions to calculate the iterative weights based on the scaled residuals.
Read the cited references for a detailed guide. Or, of course, MASS - the package is, after all, intended to support the book, not replace it.



S Ellison

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}