Skip to content
Prev 77201 / 398502 Next

specification for glmmPQL

Dear Prof. Bates and Group:

I hope it is not to late to revisit this thread. My concern is with the 
difference in standard errors estimated from data that is arranged as 
grouped (data.1) and ungrouped (data.2). With the grouped data set, the 
effect of treatment is highly significant; with the data ungrouped, is 
is only marginally significant. My empirical findings depend on the 
choice of how to construct the data frame. Which is correct?

Best wishes,
Andrew

 > summary(fm.5 <- lmer(cbind(response, 100 - response) ~ expt +
+                      (1 | subject), data = data.1, family = binomial,
+                      method = "AGQ"))

Generalized linear mixed model fit using AGQ
Formula: cbind(response, 100 - response) ~ expt + (1 | subject)
   Data: data.1
 Family: binomial(logit link)
      AIC      BIC    logLik deviance
 2437.298 2443.161 -1214.649 2429.298
Random effects:
     Groups        Name    Variance    Std.Dev.
    subject (Intercept)    0.026600     0.16309
# of obs: 32, groups: subject, 8

Estimated scale (compare to 1)  8.669802

Fixed effects:
               Estimate Std. Error z value  Pr(>|z|)   
(Intercept)   0.3082489  0.0081604  37.774 < 2.2e-16 ***
expttreatment 0.2160440  0.0115933  18.635 < 2.2e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Correlation of Fixed Effects:
            (Intr)
expttretmnt -0.704
 >
 > summary(fm.6 <- lmer(response ~ expt + (1 | subject), data = data.2,
+                      family = binomial, method = "AGQ"))
Generalized linear mixed model fit using AGQ
Formula: response ~ expt + (1 | subject)
   Data: data.2
 Family: binomial(logit link)
      AIC      BIC    logLik deviance
 4298.023 4322.306 -2145.011 4290.023
Random effects:
     Groups        Name    Variance    Std.Dev.
    subject (Intercept)    0.015878     0.12601
# of obs: 3200, groups: subject, 8

Estimated scale (compare to 1)  1.007666

Fixed effects:
              Estimate Std. Error z value  Pr(>|z|)   
(Intercept)    0.30813    0.08075  3.8159 0.0001357 ***
expttreatment  0.21350    0.11473  1.8609 0.0627583 . 
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Correlation of Fixed Effects:
            (Intr)
expttretmnt -0.704
Douglas Bates wrote: