R-alpha: glm and quantile bugs

Jim Lindsey (jlindsey@luc.ac.be)
Wed, 8 Jan 1997 14:03:38 +0100 (MET)


From: Jim Lindsey <jlindsey@luc.ac.be>
Message-Id: <9701081303.AA19904@alpha.luc.ac.be>
Subject: R-alpha: glm and quantile bugs
To: r-testers@stat.math.ethz.ch (r-testers)
Date: Wed, 8 Jan 1997 14:03:38 +0100 (MET)

With a sparse data table, summary of a Poisson glm can give

Deviance Residuals:
Error: Missing values, NaN's and Inf's not allowed if na.rm=FALSE

in the file, glm that Ross just distributed, line 8 of
print.summary.glm should be
x$deviance.resid <- quantile(x$deviance.resid, na.rm=T)

Unfortunately, this reveals an error in quantile. Line 4 should be
x <- x[!is.na(x)]
i.e. add the negation.
  Jim
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-