Dear stata users,
I am trying to analyze the effect of a intervention where we have used a cluster randomized design. There are three measure points, t1,t2 and t3 and the outcome variable is continuous. The individs are clustred in classes, the variable INT refer to grouptype; interventiongroup=1 and controllgroup=0; time =1,2 and 3.

I wonder if the model below are correct:

xtmixed Y i.time##i.INT||class:||id:,var


If I have understand this correctly this is a two-level linear model (level 1=individ and level 2=class) with random intercepts by individ and class?

Sunniva