Hello Statalist members,
I need some help on fitting a repeated measures ANCOVA model in my research. I'm using Stata 17.
I first fitted a repeated measures ANOVA model by using the following code:
where my between-subject effect is bcorpalt and within-subject effect is emtype. After some discussion, my coauthor team decided to add a covariate, pollute1, to the above model, which will make a repeated measure ANCOVA model. The covariate under consideration is an industry variable; it is a dummy variable and we think it is time invariant.
However, the following two codes both gave me this feedback: "could not determine between-subject error term; use bse() option"
Thus, my question is where a time invariant covariate goes in a repeated measures ANCOVA model? Thanks for your help in advance.
I need some help on fitting a repeated measures ANCOVA model in my research. I'm using Stata 17.
I first fitted a repeated measures ANOVA model by using the following code:
Code:
anova em bcorpalt / id|bcorpalt emtype bcorpalt#emtype, repeated(emtype)
However, the following two codes both gave me this feedback: "could not determine between-subject error term; use bse() option"
Code:
anova em bcorpalt i.pollute1 / id|bcorpalt emtype bcorpalt#emtype, repeated(emtype)
Code:
anova em bcorpalt / id|bcorpalt emtype bcorpalt#emtype i.pollute1, repeated(emtype)
Comment