Skip to content
Prev 14780 / 20628 Next

(no subject)

The GLMM FAQ has some information about specifying nested random effects.
See especially the "model specification" table [1] and the "nested or
crossed" section [2].  Something like this may be what you're looking for:

grade ~ Time + (Time | SubjectGroup / Subject) + (Time | ItemGroup / Item)

Given that you've assigned groups randomly, I'm unsure if there will be
much benefit to modeling the groups this way (unless maybe "grade" for one
subject/item is somehow influenced by the other subjects or items in the
group?).  Anyway, the dataset is small enough that it will be easy to try
and see what happens.  Also note that if "Time" has only two values, it can
be treated as a factor (like "pre" and "post" treatment).

[1]:
https://rawgit.com/bbolker/mixedmodels-misc/master/glmmFAQ.html#model-specification
[2]:
https://rawgit.com/bbolker/mixedmodels-misc/master/glmmFAQ.html#nested-or-crossed

-- dan

Daniel McCloy
http://dan.mccloy.info/
Postdoctoral Research Associate
Institute for Learning and Brain Sciences
University of Washington


On Thu, Aug 4, 2016 at 2:22 AM, Meir Barneron <meir.barneron at gmail.com>
wrote: