Skip to content
Prev 301208 / 398503 Next

MANOVA polynomial contrasts

Dear Gian,

How contrasts are created by default is controlled by the contrasts option:
unordered           ordered 
"contr.treatment"      "contr.poly" 

So, unless you've changed this option, contr.poly() will be used to generate orthogonal polynomial contrasts for an ordered factor, and you therefore need do nothing special to get this result. For example:
[1] c c a a c c b c a c
Levels: a < b < c
.L      .Q
[1,] -0.7071  0.4082
[2,]  0.0000 -0.8165
[3,]  0.7071  0.4082

For more information, see section 11 on statistical models in the manual "An Introduction to R," which is part of the standard R distribution, and in particular sections 11.1 and 11.1.1.

I hope that this clarifies the issue.

Best,
 John

------------------------------------------------
John Fox
Sen. William McMaster Prof. of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox/

On Wed, 25 Jul 2012 11:58:30 +0200
"Manzoni, GianMauro" <gm.manzoni at auxologico.it> wrote: