Skip to content
Prev 37277 / 63424 Next

problem with zero-weighted observations in predict.lm?

On Thu, 29 Jul 2010, Peter Dalgaard wrote:

            
At least that wasn't the point of change: the code was the same in R 
1.8.1 (pre-split).

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