Re: [R] GLM output for deviance and loglikelihood

From: peter dalgaard <>
Date: Thu, 21 Apr 2011 10:32:00 +0200

On Apr 21, 2011, at 05:14 , Juliet Hannah wrote:

> As you mentioned, the deviance does not always reduce to:
> D = -2(loglikelihood(model))
> It does for ungrouped data, such as for binary logistic regression.

To be precise, it only happens when the log likelihood of the saturated model is 0, which for discrete models implies that the probability of the observed data under the saturated model is 1. Binary data is pretty much the _only_ case where this is true (because individual fitted probabilities become either zero or one).

Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email:  Priv:

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 21 Apr 2011 - 08:34:39 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Apr 2011 - 09:40:32 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive