When contrasts = FALSE
, the returned contrasts are equivalent to
contr.treatment(, contrasts = FALSE)
, as suggested by McElreath (also known
as one-hot encoding).
Setting Priors
It is recommended to set 0-centered identically scaled priors of the dummy
coded variables produced by this method. These priors then represent the
distance the mean of one of the levels might have from the overall mean.
Contrasts
This method guarantees that any set of contrasts between the k groups will
have the same multivariate prior regardless of level order; However,
different contrasts within a set contrasts can have different univariate
prior shapes/scales.
For example the contrasts A - B
will have the same prior as B - C
, as
will (A + C) - B
and (B + A) - C
, but A - B
and (A + C) - B
will
differ.