Re: [R] NaN when using dffits, stemming from lm.influence call

2006-08-31 Thread Prof Brian Ripley
When applying dffits to a GLM, you are presumably intending to apply it to the working regression. However, that is not what lm.influence has long been set up to do (it uses the deviance residuals). In your example the influence is high and so the approximations of applying the standard formul

[R] NaN when using dffits, stemming from lm.influence call

2006-08-30 Thread Peter Dunn
Hi all I'm getting a NaN returned on using dffits, as explained below. To me, there seems no obvious (or non-obvious reason for that matter) reason why a NaN appears. Before I start digging further, can anyone see why dffits might be failing? Is there a problem with the data? Consider: #