RV.rtest: Monte-Carlo Test on the sum of eigenvalues of a co-inertia...

Description Usage Arguments Value Author(s) References Examples

Description

performs a Monte-Carlo Test on the sum of eigenvalues of a co-inertia analysis.

Usage

1
RV.rtest(df1, df2, nrepet = 99)

Arguments

df1, df2

two data frames with the same rows

nrepet

the number of permutations

Value

returns a list of class 'rtest'

Author(s)

Daniel Chessel

References

Heo, M. & Gabriel, K.R. (1997) A permutation test of association between configurations by means of the RV coefficient. Communications in Statistics - Simulation and Computation, 27, 843-856.

Examples

1
2
3
4
5
6
data(doubs)
pca1 <- dudi.pca(doubs$env, scal = TRUE, scann = FALSE)
pca2 <- dudi.pca(doubs$fish, scal = FALSE, scann = FALSE)
rv1 <- RV.rtest(pca1$tab, pca2$tab, 99)
rv1
plot(rv1)

Example output

Monte-Carlo test
Call: RV.rtest(df1 = pca1$tab, df2 = pca2$tab, nrepet = 99)

Observation: 0.4505569 

Based on 99 replicates
Simulated p-value: 0.01 
Alternative hypothesis: greater 

     Std.Obs  Expectation     Variance 
10.283865275  0.078489189  0.001308974 

ade4 documentation built on May 2, 2019, 5:50 p.m.

Related to RV.rtest in ade4...