Contrasts have the property that the sum of the values making up the contrast
should be zero. The simplest contrast is an individual difference between two
levels of a factor and these would be given values -1 and 1. The following
table gives common sets of contrasts in a 4 level factor. Any treatment level that
is not involved in the contrast is give a value of 0.
| Comparison |
Differences between a combination of treatment means, The differences
to be tested are provided in a contrast matrix |
| Polynomial |
The linear, quadratic, and higher-order terms from orthogonal polynomials
fitted using the X values from the levels of the factor, or 1,2,3... by default if
the factor only has labels or ordinal values defined |
| Regression |
The treatment means regressed against the contrast values. The contrasts
to be tested are provided in a contrast matrix, and are orthogonalized so that they are
all statistically independent. A warning is given if the original set of contrasts was
not orthogonal. (Two contrasts ai' and aj' are orthogonal if the sum of the
products of their terms is zero, i.e. ai'aj=0) |