Generate design for a factor covariate
fct(x, contr = "contr.sum")
x
a covariate that can be treated as a factor
contr
(character) name of the contrasts associated with the factor. Defaults to "contr.sum".
contrasts
"contr.sum"
design matrix for a factor
Fabian Scheipl