Skip to content
Prev 72649 / 398498 Next

Possible bug in summary of residuals with lm and weights

On Tue, 28 Jun 2005, Frank E Harrell Jr wrote:

            
It seems no one agreed with you!

I think most users will want S-compatibility here, and after that
residuals that are in some sense on the same scale (that is taking the
weights into account). In short, the status quo.

I suspect no one wants the definition of the "summary.lm" class changed.

There is a bug in the print method, which has

     cat(if (!is.null(x$w) && diff(range(x$w)))
         "Weighted ", "Residuals:\n", sep = "")

so it is intended to say Weighted Residuals, but w is not in a
"summary.lm" object.