View source: R/pairwise.factorfit.R
pairwise.factorfit | R Documentation |
Performs pairwise comparisons between group levels with corrections for multiple testing. Tests are computed using factorfit
.
pairwise.factorfit(ord, fact, xax = 1, yax = 2, nperm = 999,
p.method = "fdr", ...)
ord |
any multivariate analysis handled by |
fact |
grouping factor. |
xax |
first axis of the factorial map. |
yax |
second axis of the factorial map. |
nperm |
number of permutations. |
p.method |
method for p-values correction. See help of |
... |
optional further agruments to |
method |
a character string giving the name of the test. |
data.name |
a character string giving the name(s) of the data and the number of permutations. |
p.value |
table of results. |
p.adjust.method |
method for p-values correction. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
factorfit
require(vegan)
data(iris)
PCA <- rda(iris[,1:4])
MVA.plot(PCA,fac=iris$Species,col=1:3)
# Global test
envfit(PCA~Species,data=iris)
# Pairwise comparisons
# (not enough permutations here but faster to run)
pairwise.factorfit(PCA,iris$Species,nperm=49)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.