A fitted linear model has coefficients for the contrasts of the factor
terms, usually one less in number than the number of levels. This
function re-expresses the coefficients in the original coding; as the
coefficients will have been fitted in the reduced basis, any implied
constraints (e.g., zero sum for contr.helmert
or contr.sum
)
will be respected. There will be little point in using
dummy.coef
for contr.treatment
contrasts, as the missing
coefficients are by definition zero.
The method used has some limitations, and will give incomplete results
for terms such as poly(x, 2)
. However, it is adequate for
its main purpose, aov
models.