From pdalgd at gmail.com  Thu Jul 29 09:43:41 2010
From: pdalgd at gmail.com (Peter Dalgaard)
Date: Thu, 29 Jul 2010 09:43:41 +0200
Subject: [Rd] problem with zero-weighted observations in predict.lm?
In-Reply-To: <alpine.LFD.2.00.1007290714420.32203@gannet.stats.ox.ac.uk>
References: <77EB52C6DD32BA4D87471DCD70C8D700033DFEBC@NA-PA-VBE03.na.tibco.com>
	<4C4F413F.5020901@gmail.com> <4C511B73.2070504@gmail.com>
	<alpine.LFD.2.00.1007290714420.32203@gannet.stats.ox.ac.uk>
Message-ID: <4C51312D.5050200@gmail.com>

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.

-p

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



[Rd] problem with zero-weighted observations in predict.lm?
Peter Dalgaard