Return a matrix of contrasts used in
a vector of levels for a factor, or the number of levels.
an integer specifying which group is considered the baseline
group. Ignored if
a logical indicating whether contrasts should be computed.
the set of values over which orthogonal polynomials are to be computed.
These functions are adapted from
stats package. The purpose for these functions are to keep
the baseline levels of categorical variables and thus to suit the use of
contr.bayes.unordered is equivalent to
contr.bayes.ordered is equivalent to
Yu-Sung Su email@example.com
1 2 3 4 5