(I'm working in R) If I want to run a linear model on a dependent variable as a function of a categorical variable with 3 levels (l=3), and I want to use orthogonal contrasts, will I always have to establish l-1 contrasts?
Suppose I want to compare level 1 to level 2, and level 1 to level 3. Assuming the levels are called "1", "2", and "3", I would use contrasts:
c(-0.5,0.5,0), c(-0.5,0,0.5)
That is l-1 contrasts. But what if I also want to compare level 2 to level 3? Would I have to build another linear model only for that?