These functions are adapted from contr.treatment and contr.poly
in stats package. The purpose for these functions are to keep
the baseline levels of categorical variables and thus to suit the use of
bayesglm.
contr.bayes.unordered is equivalent to contr.treatment whereas
contr.bayes.ordered is equivalent to contr.poly.