Hi, I'm not sure where I am going wrong with this code... I'm trying to compare two linear regression models using anova. Specifically, I'm trying to see if adding an interaction term improves the model. However, Stata keeps returning variable m1 not found. How can I fix this? For example, the code I'm using is:
regress outcome v1 v2 v3
est store m1
regress outcome v1 v2##v3
est store m2
anova m1 m2
Thank you for your help in advance.
regress outcome v1 v2 v3
est store m1
regress outcome v1 v2##v3
est store m2
anova m1 m2
Thank you for your help in advance.
Comment