View source: R/adonis_pairwise.R
adonis_pairwise | R Documentation |
Pairwise comparisons for permutational multivariate analysis of variance using distance matrices
adonis_pairwise(
x,
dd,
group.var,
add_permdisp = TRUE,
permut = 999,
p.adj = "fdr",
all_results = T,
comparison_sep = ".",
permdisp_type = "median",
...
)
x |
Sample meta-data (data frame for the independent variables) |
dd |
Dissimilarity matrix between samples |
group.var |
Name of the independent variable to test (RHS in adonis formula) |
add_permdisp |
Logical; if TRUE (default), results of tests for homogeneity of multivariate dispersions will be added to output (see |
permut |
Number of permutations required |
p.adj |
Logical or character; if TRUE, adjust P-values for multiple comparisons with FDR; if character, specify correction method from |
all_results |
Logical, return results of adonis and data subsets for each pairwise comparison |
comparison_sep |
Character string to separate the levels of independent variable the in the pairwise comparison names (default, ".") |
permdisp_type |
Use the spatial median (default) or the group centroid for the analysis for homogeneity of multivariate dispersions (see |
... |
Additional arguments will be passed to |
List with adinonis and betadisper results.
adonis
, betadisper
library(vegan)
data(dune)
data(dune.env)
# Compare all Management levels
adonis2(dune ~ Management, data = dune.env)
# Pairwise comparisons between Management levels
tst <- adonis_pairwise(x = dune.env, dd = vegdist(dune), group.var = "Management")
tst$Adonis.tab
tst$Betadisper.tab
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.