Professional Documents
Culture Documents
One Way ANOVA Using SAS: STT 501 Spring 2007
One Way ANOVA Using SAS: STT 501 Spring 2007
STT 501
Spring 2007
Example
Let’s test to see if mercury level relates
to surface area as defined by the
following 4 classes:
This requests
corrected sums
of squares
Example
My ANOVA table should look something
like:
Source df Sum of Squares
S. Area
Error
Total 119 13.2169
29+30+
The sum of
27+30=
these is my
116
error sum of
squares
Example
My ANOVA table should look something
like:
Source df Sum of Squares
S. Area
Error 116 12.4578
Total 119 13.2169
Identifies
the group
variable
Required, since
we’ve constructed
groups with a format
ANOVA Procedures
In multi-factor
This should cases, the model
be the same sum of squares
as our will be a sum
ANOVA table of all the factors,
which are then
separated at the
bottom. Since
surface area is
the only factor
here, its sum of
squares is the
same as the model.
Multiple Comparisons
From the results of our ANOVA, we see
moderately significant evidence that
mercury level is related to surface area
category.
At this point, it would likely be useful to
compare mercury levels across surface
area categories.
Multiple Comparisons
We can get means for the response
variable in each group using the means
statement, and we can ask for
comparisons as well.
Several multiple comparisons are
available, including: Bonferroni
adjusted t-tests, Tukey’s W, Ryan’s Q
and Dunnett’s test.
Example
Requests
comparisons
based on
the Bonferroni
adjustment Sets the experiment-wise
error rate
Example
I also get an
interesting
note here.
Ryan’s Q will
always give
output in a
grouping form.
This is because
Ryan’s Q is
designed for
equal group sizes.
If I use this
format…
Example