Running a Regression Using ANOVA
Particularly in cases where there are a lot of categorical variables, the anova
command can be used to run regressions. To see the regression corresponding to your ANOVA, simply add the regression
option to the end of the command. Specifying regress
suppresses the actual anova. To include both the ANOVA and the regression, there are two options. First, class both options at the end of the command anova gpa gender grade gender#grade, regress anova
Alternatively, once you have run an ANOVA, you can then type anova, regress
which will print the underlying regression model for the last ANOVA specified.