13 Multivariate comparisons of microbial community composition

The above examples focus on comparison per individual taxonomic group. Often, the groups are correlated and we are interested in comparing the overall community composition.

13.1 PERMANOVA

Permutational multivariate analysis of variance further reading. See also statmethods.

## Loading required package: permute
## Loading required package: lattice
## This is vegan 2.5-6
## 
## Attaching package: 'vegan'
## The following object is masked from 'package:microbiome':
## 
##     diversity
## [1] 0.05

13.2 Checking the homogeneity condition

Type ?betadisper in R console for more information.

## Analysis of Variance Table
## 
## Response: Distances
##            Df  Sum Sq  Mean Sq F value Pr(>F)
## Groups      2 0.01252 0.006262  0.6649 0.5154
## Residuals 219 2.06254 0.009418
## 
## Permutation test for homogeneity of multivariate dispersions
## Permutation: free
## Number of permutations: 999
## 
## Response: Distances
##            Df  Sum Sq  Mean Sq      F N.Perm Pr(>F)
## Groups      2 0.01252 0.006262 0.6649    999  0.505
## Residuals 219 2.06254 0.009418                     
## 
## Pairwise comparisons:
## (Observed p-value below diagonal, permuted p-value above diagonal)
##         DI      ED    HE
## DI         0.40100 0.693
## ED 0.44203         0.296
## HE 0.69469 0.30560

We can also check which taxa contribute most to the community differences. Are these same or different compared to DESeq2?