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

Jerome Goudet jerome.goudet at unil.ch
Thu Jul 9 21:36:29 CEST 2009



Christopher David Desjardins wrote:
> Hi,
> 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)
Would:

glmer.quad.sch <- glmer(sus ~ I(grade^2) + male*I(grade^2) + 
sped*I(grade^2) + ethnic*I(grade^2) + risk*I(grade^2) + (1+ I(grade^2) | 
schno.f/id.f), family=poisson, nAGQ=1, data= enroll.long.ting)


do the trick?

> 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.
> Thanks,
> Chris
>
> > sessionInfo()
> R version 2.9.1 (2009-06-26)
> i386-apple-darwin8.11.1
>
> locale:
> en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>
> 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
>
>

-- 
Jérôme Goudet
Dept. Ecology & Evolution
UNIL-Sorge, CH-1015 Lausanne

mail:jerome.goudet at unil.ch
Tel:+41 (0)21 692 4242
Fax:+41 (0)21 692 4265




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