Re: [Rd] problem with zero-weighted observations in predict.lm?

From: Peter Dalgaard <>
Date: Thu, 29 Jul 2010 09:43:41 +0200

Prof Brian Ripley wrote:

> I think you will find that 'n' is used in several ways in predict.lm,
> and since NA-handling was introduced in R 1.8.0 they may differ in
> value. So the safest route seems to be to change just 'n' in
> df <- n - p

Yes, that seems to fix things. Will commit to R-devel shortly.


Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email:  Priv:

______________________________________________ mailing list
Received on Thu 29 Jul 2010 - 07:45:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 29 Jul 2010 - 08:40:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive