13ANALYSIS OF VARIANCE

This chapter illustrates how to perform an analysis of variance (ANOVA) for several common designs. These procedures are used to compare means across groups or to compare three or more repeated measures (dependent samples). SAS® provides three major procedures for performing ANOVA: PROC ANOVA, PROC GLM, and PROC MIXED. We will discuss PROC MIXED in Chapter 14.

In this chapter, we use both PROC ANOVA and PROC GLM in our analysis of a one-way ANOVA. PROC ANOVA is a basic procedure that is useful for one-way ANOVA or for multiway factorial designs with fixed factors and an equal number of observations per cell.

PROC GLM is a SAS procedure that is similar to but more advanced than PROC ANOVA. (GLM stands for General Linear Model.) We also use PROC GLM for the one-way repeated measures analysis, because it involves techniques not supported by PROC ANOVA. In Chapter 14, we illustrate the use of PROC MIXED to analyze a model with both fixed and random factors and for a repeated measures design with a grouping factor. The “Going Deeper” section in this chapter describes how to perform posthoc comparisons for a one-way ANOVA.

13.1 COMPARING THREE OR MORE MEANS USING ONE-WAY ANALYSIS OF VARIANCE

A one-way ...

Get SAS Essentials: Mastering SAS for Data Analytics, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.