Hi everyone,
I am currently working on a research project in which I run a two-way ANCOVA with one covariate. Both variables of interest (a and b) are categorical (with two levels each), and the covariate d is continuous. I used the following code: anova y a##b c.d
Now my question is about the test of simple main effects. The ANCOVA shows a significant interaction of a and b and a significant main effect of b, so I want to do simple main effect tests to see whether b is significant in both levels of a or just in one of the two. How can I do this in Stata? The covariate d still needs to be included, otherwise commands like sme do not seem to work (I tried "sme b a" and it showed no significant effect of b for either level of a, and I think this is because I did not manage to include the covariate in this simple main effect test; however, I am happy to use other commands than sme if there are better ones!).
Thanks in advance!
I am currently working on a research project in which I run a two-way ANCOVA with one covariate. Both variables of interest (a and b) are categorical (with two levels each), and the covariate d is continuous. I used the following code: anova y a##b c.d
Now my question is about the test of simple main effects. The ANCOVA shows a significant interaction of a and b and a significant main effect of b, so I want to do simple main effect tests to see whether b is significant in both levels of a or just in one of the two. How can I do this in Stata? The covariate d still needs to be included, otherwise commands like sme do not seem to work (I tried "sme b a" and it showed no significant effect of b for either level of a, and I think this is because I did not manage to include the covariate in this simple main effect test; however, I am happy to use other commands than sme if there are better ones!).
Thanks in advance!
Comment