The One-way ANOVA in Stata
With only one discrete, continuous normal variable and at least three dimensions, you can run a one-way ANOVA using Stata's oneway
command. The basic syntax for such a command is simply oneway testvariable factorvariable
So to test, for example apples eaten by hunger prime (none, hungry, depressed, or uncomfortably full), the command would look something like oneway apple condition
You'll notice the very last line of this analysis is the Bartlett's test of equal variances which tests the assumption you made in running the ANOVA that the variances were approximately equal (click here for more information). This particular equal variance test is sensitive to nonnormalacy in the data. If your data is somewhat non-normal you may prefer running Levene's test for equal variances (SPSS' default test), however to do this in Stata
In addition to simply running the analysis, Stata offers post-hocs. These should be relatively familiar for those used to SPSS. The post-hocs offered by Stata consist of the bonferroni
, the scheffe
,or the sidak
. As with other options, these are specified after the main command. So to run a one-way ANOVA with a Bonferonni post-hoc, the whole command would be oneway apple condition, bonferonni
These will be outputted as secondary analyses after the main ANOVA.