[R] Error: cannot use PQL when using lmer

hpdutra at yahoo.com hpdutra at yahoo.com
Sun Jul 6 04:15:43 CEST 2008


I am trying to do an exercise on Crawley's book and I get this error message. I ran the same analysis in the past but now that I upgraded my R in my Macbook I get this message. Is this a bug or what is going on.
It doesn't make any sense

> library(MASS)
> attach(bacteria)
> table(y)
y
  n  y
43 177
> y<-1*(y=="y")
> table(y,trt)
  trt
y  placebo drug drug+
  0      12  18    13
  1      84  44    49
> library(lme4)
> model1<-lmer(y~trt+(week|ID),family=binomial,method="PQL")
Error in match.arg(method, c("Laplace", "AGQ")) :
  'arg' should be one of “Laplace”, “AGQ”

Humberto Dutra



More information about the R-help mailing list