Description Usage Arguments Details Value Author(s) Examples
View source: R/EcolUtils_functions.R
Pairwise comparisons for all pairs of levels of a factor by using for Permutational MANOVA.
1 | adonis.pair(dist.mat, Factor, nper = 1000, corr.method = "fdr")
|
dist.mat |
Dissimilarity object |
Factor |
Factor whose levels are to be compared. |
nper |
Number of permutations. |
corr.method |
P-value's correction method (from |
Basically the adonis.pair
function applies the adonis
function from vegan to all pairs of levels of a factor. P-values are then corrected with p.adjust
.
Data frame with the R2, p-values and corrected p-values for each pairwise combination.
Guillem Salazar <guillems@ethz.ch>
1 2 3 4 | library(vegan)
data(dune)
data(dune.env)
adonis.pair(vegdist(dune),dune.env$Management)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.