[R-sig-ME] Error with glmer when nesting students in school

Christopher David Desjardins desja004 at umn.edu
Thu Jul 9 21:24:40 CEST 2009

I am running a model where my outcome variable is a count variable (# of 
suspensions) and I am trying to nest students (id.f) within school 
(schno.f). When I run this model I get the following error:

glmer.quad.sch <- glmer(sus ~ (grade)^2 + male*(grade)^2 + 
sped*(grade)^2 + ethnic*(grade)^2 + risk*(grade)^2 + (1+ (grade)^2 | 
schno.f/id.f), family=poisson, nAGQ=1, data= enroll.long.ting)
Error message:
Error in mer_finalize(ans) : q = 209642 > n = 175975
Calls: system.time ... glmer -> do.call -> <Anonymous> -> mer_finalize 
-> .Call
Execution halted

I am treating both id.f and schno.f as factors as glmer wouldn't run 
without them.

 > sessionInfo()
R version 2.9.1 (2009-06-26)


attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] lme4_0.999375-31   Matrix_0.999375-29 lattice_0.17-25

loaded via a namespace (and not attached):
[1] grid_2.9.1

Christopher David Desjardins
Ph.D. Student
Quantitative Methods in Education
Department of Educational Psychology
University of  Minnesota

More information about the R-sig-mixed-models mailing list