ade4 (version 1.7-15)

randtest.pcaiv: Monte-Carlo Test on the percentage of explained (i.e. constrained) inertia

Description

Performs a Monte-Carlo test on on the percentage of explained (i.e. constrained) inertia. The statistic is the ratio of the inertia (sum of eigenvalues) of the constrained analysis divided by the inertia of the unconstrained analysis.

Usage

# S3 method for pcaiv
randtest(xtest, nrepet = 99, ...)
# S3 method for pcaivortho
randtest(xtest, nrepet = 99, ...)

Arguments

xtest

an object of class pcaiv, pcaivortho or caiv

nrepet

the number of permutations

further arguments passed to or from other methods

Value

a list of the class randtest

Examples

Run this code
# NOT RUN {
data(rpjdl)
millog <- log(rpjdl$mil + 1)
coa1 <- dudi.coa(rpjdl$fau, scann = FALSE)
caiv1 <- pcaiv(coa1, millog, scan = FALSE)
randtest(caiv1)
# }

Run the code above in your browser using DataLab