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
GMM with multi-level moment conditonsHi all, I want to do a two-step GMM estimation with multi-level moment conditons (the objective fun…
Need some help interpreting fe in StataMPI've been teaching myself STATA code for my research paper. I've copied the code and the output of i…
Log transform a variableIf we try to log transform a variable in STATA, why does the result(logX value) obtained differ from…
Bar charts: Percent on y-axis, absolute count over each bar?Hi, I'm making a bunch of barcharts, some using graph, some using catplot, like this: Code: grap…
Generate a New Variable: if anyI have a variable called DocVisit that records the number of times a respondent visits a clinic. It …
Subscribe to:
Post Comments (Atom)
0 Response to xtmixed
Post a Comment