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

Christopher David Desjardins desja004 at umn.edu
Thu Jul 9 21:47:50 CEST 2009


Unfortunately, that gives me a similar error.

 > 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.m)
Error in mer_finalize(ans) : q = 209642 > n = 175975

Cheers,
Chris


On 7/9/09 2:36 PM, Jerome Goudet wrote:
>
>
> 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
>>
>>
>

-- 
Christopher David Desjardins
Ph.D. Student
Quantitative Methods in Education
Department of Educational Psychology
University of  Minnesota
http://cddesjardins.wordpress.com/




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