contrasts {base} | R Documentation |
contrasts(x)
contrasts(x) <- ctr
x |
a factor. |
ctr |
either a matrix whose columns give coefficients
for contrasts in the levels of |
These functions are used to set and view the contrasts associated with a factor. If contrasts are not set for a factor the default functions named the system options are used.
contr.helmert
,
contr.poly
,
contr.sum
,
contr.treatment
,
glm
,
lm
.