Skip to content
Prev 131549 / 398506 Next

paradox about the degree of freedom in a logistic regression model

Bin Yue wrote:
Yes. Never use the deviance in binary logistic regression. Only use
differences in deviance between models, each of which satisfy
requirements for asymptotic theory (in your case, you could compare your
model with that described by sex*factor(ldose)). Another striking
example is this

y <- rbinom(1000, prob=.5, size=1)
summary(glm(y~-1,binomial))

now try it with different data

y <- rbinom(1000, prob=.01, size=1)
summary(glm(y~-1,binomial))

and think about it. Then consider the same thing with y~1.

As Brian keeps telling me, there IS a sense in which the residual
deviances make sense in such cases, but it is not as a means of testing
the model adequacy.