Skip to content

lm.influence doesn't work with na.exclude (PR#1001)

1 message · Peter Dalgaard

#
The new na.exclude mechanism for linear models does not extend to
influence measures and diagnostics.

For the same reason, the plot method breaks for lm objects computed
with na.action=na.exclude.

x<-1:10
y<-c(rnorm(9),NA)
lm.influence(lm(y~x,na.action=na.exclude))

#Error in lm.influence(lm(y ~ x, na.action = na.exclude)) : 
        NA/NaN/Inf in foreign function call (arg 6)

(This would have been our anniversary #1000 bug report, but some
spammer beat me to it - caught by Martin's filters, I assume)