[R-sig-ME] Deviance residuals don't sum up to deviance

Roelof Coster roelofcoster at gmail.com
Fri Aug 22 13:37:51 CEST 2014


Hello,

I fitted a logistic regression model with glmer. In the resulting model,
the reported deviance is not the same as the sum of the squares of the
residual deviances. The deviance is 3909, the sum of square deviance
residuals is 3747.

These two should be equal, shouldn't they? The difference seems too large
for a roundoff error, I think.

My data are 150k observations and the fitted probabilities are generally
very small (between 1e-7 and 1e-2, median 1e-4).

Thanks! Roelof Coster

	[[alternative HTML version deleted]]



More information about the R-sig-mixed-models mailing list