|
Chapter Contents |
Previous |
Next |
| Introduction to Analysis-of-Variance Procedures |
An analysis-of-variance model can be written as a linear model, which is an equation that predicts the response as a linear function of parameters and design variables. In general,

The simplest model is to fit a single mean to all observations.
In this case there is only one parameter,
, and one
design variable, x0i, which always has the value of 1:

A one-way model is written by introducing an indicator variable for each level of the classification variable. Suppose that a variable A has four levels, with two observations per level. The indicator variables are created as follows:
| Intercept | A1 | A2 | A3 | A4 | ||||||
| 1 | 1 | 0 | 0 | 0 | ||||||
| 1 | 1 | 0 | 0 | 0 | ||||||
| 1 | 0 | 1 | 0 | 0 | ||||||
| 1 | 0 | 1 | 0 | 0 | ||||||
| 1 | 0 | 0 | 1 | 0 | ||||||
| 1 | 0 | 0 | 1 | 0 | ||||||
| 1 | 0 | 0 | 0 | 1 | ||||||
| 1 | 0 | 0 | 0 | 1 |
The linear model for this example is

|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.