School (99 schools)
Class * (see below)
ID (4249 children)
Time (3 timepoints, T1, T2, T3)
For Class, there is cross-nesting going on:
At T1, children were in their classT1 (N=250), At T2 and T3, children were in classT2 (N=232).
To be precise, we measured T1 in May, and both T2 and T3 were measured in the next schoolyear (October and May, respectively).
Classroom composition could change from T1 to T2, but because T2 and T3 were measured within the same school year, classroom composition was similar there.
I now defined this cross-classified structure as follow:
Code: Select all
formula1 = outcome ~1 + (1|school) + (1|classT2) + (1|classT1) + (1|ID) + (1|Time)
time is nested in ID,
ID is nested in both classT2 and classT1,
both classT2 and classT1 are nested in school ?
And, how can I chech that this hierarchy / clustering was recognized as it should?