Skip to content
Prev 301692 / 398503 Next

MANOVA polynomial contrasts

Dear Gian Mauro,

On Mon, 30 Jul 2012 14:44:44 +0200
"Manzoni, GianMauro" <gm.manzoni at auxologico.it> wrote:
Here's a contrived example, which uses the Anova() and linearHypothesis() functions in the car package:

----- snip ------
Call:
lm(formula = Y ~ f)

Coefficients:
             y1        y2        y3      
(Intercept)   0.06514  -0.01683  -0.13787
f.L          -0.37837   0.18309   0.29736
f.Q          -0.02102  -0.39894   0.08455
f.C           0.05898   0.09358  -0.17634
Type II MANOVA Tests: Pillai test statistic
  Df test stat approx F num Df den Df Pr(>F)
f  3   0.11395   1.2634      9    288 0.2566
Sum of squares and products for the hypothesis:
          y1        y2        y3
y1  3.607260 -1.745560 -2.834953
y2 -1.745560  0.844680  1.371839
y3 -2.834953  1.371839  2.227995

Sum of squares and products for error:
          y1        y2        y3
y1 86.343376 -8.054928 -3.711756
y2 -8.054928 95.473020  2.429151
y3 -3.711756  2.429151 89.593163

Multivariate Tests: 
                 Df test stat approx F num Df den Df   Pr(>F)  
Pillai            1 0.0648520 2.172951      3     94 0.096362 .
Wilks             1 0.9351480 2.172951      3     94 0.096362 .
Hotelling-Lawley  1 0.0693495 2.172951      3     94 0.096362 .
Roy               1 0.0693495 2.172951      3     94 0.096362 .
---
Signif. codes:  0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1 

----- snip ------

You could do similar tests for the quadratic and cubic contrasts.

I hope this helps,
 John

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