Hello. I am using the xtmixed command to run a multilevel model using cross-national survey data. My level 1 is the individual, and level 2 is the country. I could use a little help with the following issues.
1) Is there a stata test/command that can determine if just the random intercept of random intercept+random slope model is better suited?
2) When using cross level interactions, I read that one typically uses a random slope model. Is there any rule of thumb about when to use random slope vs. random intercept model in such a circumstance.
3) When using a cross level interaction AND a random slope model, should the random effects portion always include the level 1 variable or under certain circumstances would it make sense to add the level 2 variable. For instance, is "a" always the right specification?
a) xtmixed y c.xlevel1##c.xlevel2 || country: x_level1
b) xtmixed y c.xlevel1##c.xlevel2 || country: x_level2
4) Is there any stata test/command to figure out what type of covariance to use?
Any help would be appreciated!
Thank you,
Gene Park
1) Is there a stata test/command that can determine if just the random intercept of random intercept+random slope model is better suited?
2) When using cross level interactions, I read that one typically uses a random slope model. Is there any rule of thumb about when to use random slope vs. random intercept model in such a circumstance.
3) When using a cross level interaction AND a random slope model, should the random effects portion always include the level 1 variable or under certain circumstances would it make sense to add the level 2 variable. For instance, is "a" always the right specification?
a) xtmixed y c.xlevel1##c.xlevel2 || country: x_level1
b) xtmixed y c.xlevel1##c.xlevel2 || country: x_level2
4) Is there any stata test/command to figure out what type of covariance to use?
Any help would be appreciated!
Thank you,
Gene Park
Comment