Multivariate analysis of variance (MANOVA)

TODO

  • link to multLDA, anovaSStypes

Install required packages

car, mvtnorm

One-way MANOVA

          Df   Wilks approx F num Df den Df    Pr(>F)    
IV         2 0.38675   17.024      4    112 6.222e-11 ***
Residuals 57                                             
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Two-way MANOVA

Type I sum of squares

           Df  Pillai approx F num Df den Df    Pr(>F)    
IV1         2 0.81891   39.521      4    228 < 2.2e-16 ***
IV2         1 0.24055   17.896      2    113 1.771e-07 ***
IV1:IV2     2 0.14550    4.472      4    228  0.001693 ** 
Residuals 114                                             
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Type II/III sum of squares


Type III MANOVA Tests:

Sum of squares and products for error:
         Y.1     Y.2
Y.1 1657.963 -349.19
Y.2 -349.190  982.94

------------------------------------------
 
Term: (Intercept) 

Sum of squares and products for the hypothesis:
         Y.1      Y.2
Y.1 188.0783 412.0900
Y.2 412.0900 902.9119

Multivariate Tests: (Intercept)
                 Df test stat approx F num Df den Df     Pr(>F)    
Pillai            1 0.5664167 73.80943      2    113 < 2.22e-16 ***
Wilks             1 0.4335833 73.80943      2    113 < 2.22e-16 ***
Hotelling-Lawley  1 1.3063616 73.80943      2    113 < 2.22e-16 ***
Roy               1 1.3063616 73.80943      2    113 < 2.22e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

------------------------------------------
 
Term: IV1 

Sum of squares and products for the hypothesis:
         Y.1      Y.2
Y.1 782.9783  62.5900
Y.2  62.5900 891.4717

Multivariate Tests: IV1
                 Df test stat approx F num Df den Df     Pr(>F)    
Pillai            2 0.8189128 39.52124      4    228 < 2.22e-16 ***
Wilks             2 0.3355622 41.03532      4    226 < 2.22e-16 ***
Hotelling-Lawley  2 1.5197264 42.55234      4    224 < 2.22e-16 ***
Roy               2 1.1019821 62.81298      2    114 < 2.22e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

------------------------------------------
 
Term: IV2 

Sum of squares and products for the hypothesis:
         Y.1       Y.2
Y.1 193.3413 116.25319
Y.2 116.2532  69.90128

Multivariate Tests: IV2
                 Df test stat approx F num Df den Df     Pr(>F)    
Pillai            1 0.2043019 14.50683      2    113 2.4676e-06 ***
Wilks             1 0.7956981 14.50683      2    113 2.4676e-06 ***
Hotelling-Lawley  1 0.2567580 14.50683      2    113 2.4676e-06 ***
Roy               1 0.2567580 14.50683      2    113 2.4676e-06 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

------------------------------------------
 
Term: IV1:IV2 

Sum of squares and products for the hypothesis:
          Y.1       Y.2
Y.1  39.72500 -69.36667
Y.2 -69.36667 158.57167

Multivariate Tests: IV1:IV2
                 Df test stat approx F num Df den Df     Pr(>F)    
Pillai            2 0.1455029 4.472193      4    228 0.00169258 ** 
Wilks             2 0.8553409 4.591223      4    226 0.00139073 ** 
Hotelling-Lawley  2 0.1681379 4.707860      4    224 0.00114750 ** 
Roy               2 0.1620497 9.236832      2    114 0.00019151 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Detach (automatically) loaded packages (if possible)

Get the article source from GitHub

R markdown - markdown - R code - all posts