Skip to content
Prev 307075 / 398506 Next

Setting the desired reference category with contr.sum

Hi,

The contr. functions return matrices, so you can can create any
arbitrary matrix you like. For example

contrasts(career) <- cbind(c1=c(-1, 1, 0, 0, 0, 0),
                                      c2=c(-1, 0, 1, 0, 0, 0),
                                      c3=c(-1, 0, 0, 1, 0, 0),
                                      c4=c(-1, 0, 0, 0, 1, 0),
                                      c5=c(-1, 0, 0, 0, 0, 1))

Best,
Ista
On Fri, Oct 5, 2012 at 8:01 AM, autarkie <kovla123 at hotmail.com> wrote: