adonis.pair: Pairwise comparisons for Permutational Multivariate Analysis...

Description Usage Arguments Details Value Author(s) Examples

View source: R/EcolUtils_functions.R

Description

Pairwise comparisons for all pairs of levels of a factor by using for Permutational MANOVA.

Usage

1
adonis.pair(dist.mat, Factor, nper = 1000, corr.method = "fdr")

Arguments

dist.mat

Dissimilarity object

Factor

Factor whose levels are to be compared.

nper

Number of permutations.

corr.method

P-value's correction method (from p.adjust).

Details

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.

Value

Data frame with the R2, p-values and corrected p-values for each pairwise combination.

Author(s)

Guillem Salazar <guillems@ethz.ch>

Examples

1
2
3
4
library(vegan)
data(dune)
data(dune.env)
adonis.pair(vegdist(dune),dune.env$Management)

GuillemSalazar/EcolUtils documentation built on Nov. 6, 2019, 10:50 a.m.