[R] glm and lrm disagree with zero table cells
tlumley at u.washington.edu
Thu Oct 24 22:09:13 CEST 2002
On Thu, 24 Oct 2002, Eric Rescorla wrote:
> I've noticed that glm and lrm give extremely different results if you
> attempt to fit a saturated model to a dataset with zero cells. Consider,
> for instance the data from, Agresti's Death Penalty example .
The MLEs are infinite, so there are bound to be problems. Both methods
will stop short of infinity, when the coefficients or likelihood stop
changing, but where they stop will depend on the exact tolerance and
They aren't actually that different in terms of fitted values. For
example, the zero cell has a fitted probability of 0.00025 and 0.0005 in
the two models.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help