Learn R Programming

ade4 (version 1.7-22)

procuste.randtest: Monte-Carlo Test on the sum of the singular values of a procustean rotation (in C).

Description

performs a Monte-Carlo Test on the sum of the singular values of a procustean rotation.

Usage

procuste.randtest(df1, df2, nrepet = 999, ...)

Value

returns a list of class randtest

Arguments

df1

a data frame

df2

a data frame

nrepet

the number of permutations

...

further arguments passed to or from other methods

Author

Jean Thioulouse Jean.Thioulouse@univ-lyon1.fr

References

Jackson, D.A. (1995) PROTEST: a PROcustean randomization TEST of community environment concordance. Ecosciences, 2, 297--303.

Examples

Run this code
data(doubs)
pca1 <- dudi.pca(doubs$env, scal = TRUE, scann = FALSE)
pca2 <- dudi.pca(doubs$fish, scal = FALSE, scann = FALSE)
protest1 <- procuste.randtest(pca1$tab, pca2$tab, 999)
protest1
plot(protest1,main="PROTEST")

Run the code above in your browser using DataLab