Dear all,
In the previous (0.999...) lme4 version I checked for overdispersion in binomial mixed models as follows:
disp_glmer <- function(modelglmer)
{
## computing  estimated scale  (binomial model)
#following  D. Bates :
#That quantity is the square root of the penalized residual sum of
#squares divided by n, the number of observations, evaluated as:
n <- length(modelglmer@resid)
return(  sqrt( sum(c(modelglmer@resid, modelglmer@u) ^2) / n ) )
}

disp_glmer(fit)

However, if I try this in the new version I get the error
disp_glmer(fit3) #looks fine (0,998)
Error in disp_glmer(fit3) :
  no slot of name "resid" for this object of class "glmerMod"

What would be the correct syntax for doing this in the new version?

Cheers,
Tom


_______________________________________________________________________________________

Prof. Tom Wenseleers
*      Lab. of Socioecology and Social Evolution
           Dept. of Biology
           Zoological Institute
           K.U.Leuven
           Naamsestraat 59, box 2466
           B-3000 Leuven
           Belgium
* +32 (0)16 32 39 64 / +32 (0)472 40 45 96
* tom.wenseleers@bio.kuleuven.be
http://bio.kuleuven.be/ento/wenseleers/twenseleers.htm



	[[alternative HTML version deleted]]

