Skip to content
Prev 8735 / 20628 Next

Response variable with zero variance

Tonya Haff <tonyahaff at ...> writes:
By the way, the fixed effect part of the formula can also
be written as fEXPN*fPBN alone (since A*B is equivalent to A+B+A:B;
unlike in some other stats packages, * means "crossed" rather
than "interaction")

   It may be worth double-checking this with glmmPQL:

  library(MASS)
  glmmPQL(RESPONSE~fEXPN*fPBN,random=~1|fNID,data=FL.1,
    family="binomial")

although if the data are Bernoulli (0/1) then PQL is a little
bit questionable.
This looks like a Hauck-Donner effect to me (you can look it
up -- it occurs in GLM(M)s when there are strong binomial
effects).  I'm a little worried about the exact equivalence
of some of the parameter estimates though, and apparent
overfitting ... if these are Bernoulli data, how many
positive responses are there overall?  Have you tried
nAGQ=8 ?
But: what did you do in SPSS, which doesn't fit GLMMs (as
far as I know)?