[R-sig-ME] Science Fair data

Doug Adams dougadams53 at gmail.com
Tue Jan 26 04:41:24 CET 2010


> you want ...
>
> lmer(score ~ division + (1|district/school), data=Age6m)
>
> and not
>
> lmer(score ~ division + (1|school|district), data=Age6m)
>
>
> You want school nested within district correct? The first line specifies
> that. Or maybe you really wanted ...
>
> lmer(score ~ division + (1|school + district), data=Age6m)

Thanks; I think that makes sense.  What's the difference between
listing your factors as:

lmer(score ~ division + (1|district/school), data=Age6m)
and
lmer(score ~ division + (1|school) + district, data=Age6m)

since district is another level?  Sorry if that question is quite
'newbie.'   : )

Doug




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