Skip to content

problems with understanding behaviour of glm

1 message · Brian Ripley

#
Yes, this is known as linear (complete) separation, and means your
model is not at all appropriate (and IWLS does not fit it well).
There is a linear combination of the predictors which can give
all positive observations positive sign and all negative observations
negative sign. Then no MLE exists, but the likelihood has a supremum
corresponding to giving all observations fitted probabilities zero or one.
Most books do not cover this, but Santer & Duffy (1989) (for one) does.
maxit=100)
inner loop 2; can't correct step size

That's not what I get, but I guess the problem is the same: computations
on very large numbers are generating NaNs.  S-PLUS is much more careful
that R, and I will try to add some care to R.
fit.small$weights)
[...]
Yes. Actually, that is not a high residual, that is a large _working_
residual, and it is large precisely because it has been divided by the
weight.  Please do not assume that the $residual and $fitted components
are the residuals and fitted values, but use the extractor functions
provided. The help page for glm does not describe (in R) what the
components mean.  Look up what the IWLS algorithm does in the 
binomial(logit) case: it is quite simple to describe.