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
Related Posts with xtmixed
How to compare countries in panel data regression?Hi everyone I am comparing variables for 3 countries over 20 years and I would like to have a coeff…
Reformatting datasetHello Statalists, I'm new to Statalist, I've read the forum guidance and tried to follow but please…
ciplot using listwise deletionDear Stata users, I am using Stata/IC 16.1. I have 4 binary variables (Yes=1 No=0). I want to plot …
How to randomly sampling and regression, and save the output 500 times, and draw kdensity of 500 coeffients?for example, I have a sample of 2000 students from 50 schools. I want to randomly drop 2 schools an…
Get rid of the space after the leading quote?Hi all, Please see the graph below and the example codes. In the 'note' option in my codes, I have …
Subscribe to:
Post Comments (Atom)
0 Response to xtmixed
Post a Comment