skbio.stats.distance.permanova(distance_matrix, grouping, column=None, permutations=999)[source]¶Test for significant differences between groups using PERMANOVA.
State: Experimental as of 0.4.0.
Permutational Multivariate Analysis of Variance (PERMANOVA) is a non-parametric method that tests whether two or more groups of objects (e.g., samples) are significantly different based on a categorical factor. It is conceptually similar to ANOVA except that it operates on a distance matrix, which allows for multivariate analysis. PERMANOVA computes a pseudo-F statistic.
Statistical significance is assessed via a permutation test. The assignment of objects to groups (grouping) is randomly permuted a number of times (controlled via permutations). A pseudo-F statistic is computed for each permutation and the p-value is the proportion of permuted pseudo-F statisics that are equal to or greater than the original (unpermuted) pseudo-F statistic.
| Parameters: |
|
|---|---|
| Returns: | Results of the statistical test, including |
| Return type: | pandas.Series |
See also
Notes
See [1] for the original method reference, as well as vegan::adonis,
available in R’s vegan package [2].
The p-value will be np.nan if permutations is zero.
References
| [1] | Anderson, Marti J. “A new method for non-parametric multivariate analysis of variance.” Austral Ecology 26.1 (2001): 32-46. |
| [2] | http://cran.r-project.org/web/packages/vegan/index.html |
Examples
See skbio.stats.distance.anosim for usage examples (both functions
provide similar interfaces).