Dear members of Stata forum,
I need some help on contrast tests after fitting a repeated-measures ANOVA model in my research. I'm using Stata 17.
I fitted a one-way repeated-measures ANOVA model by using the following code:
where my between-subject effect is bcorpalt and within-subject effect is emtype.
The results show that the between-subject effect, bcorpalt, is significant. So after fitting the ANOVA model, I am figuring out how to perform post-hoc contrast tests. Right now, I have tried the following two options of code:
Any thoughts on which of the above code is more appropriate in my case? I appreciate your help in advance.
One more note. The within-subject effect, emtype, is also significant in my fitted model.
Best,
Jiahui
I need some help on contrast tests after fitting a repeated-measures ANOVA model in my research. I'm using Stata 17.
I fitted a one-way repeated-measures ANOVA model by using the following code:
Code:
anova em bcorpalt / id|bcorpalt emtype, repeated(emtype)
The results show that the between-subject effect, bcorpalt, is significant. So after fitting the ANOVA model, I am figuring out how to perform post-hoc contrast tests. Right now, I have tried the following two options of code:
Code:
contrast ar.emtype, effects
Code:
margins emtype, at (bcorpalt=1) pwcompare (effects) noestimcheck
One more note. The within-subject effect, emtype, is also significant in my fitted model.
Best,
Jiahui
Comment