rtest.between: Monte-Carlo Test on the between-groups inertia percentage (in...

Description Usage Arguments Value Author(s) References Examples

Description

Performs a Monte-Carlo test on the between-groups inertia percentage.

Usage

1
2
## S3 method for class 'between'
rtest(xtest, nrepet = 99, ...)

Arguments

xtest

an object of class between

nrepet

the number of permutations

...

further arguments passed to or from other methods

Value

a list of the class rtest

Author(s)

Daniel Chessel

References

Romesburg, H. C. (1985) Exploring, confirming and randomization tests. Computers and Geosciences, 11, 19–37.

Examples

1
2
3
4
5
data(meaudret)
pca1 <- dudi.pca(meaudret$env, scan = FALSE, nf = 3)
rand1 <- rtest(bca(pca1, meaudret$design$season, scan = FALSE), 99)
rand1
plot(rand1, main = "Monte-Carlo test")

Example output

Monte-Carlo test
Call: rtest.between(xtest = bca(pca1, meaudret$design$season, scan = FALSE), 
    nrepet = 99)

Observation: 0.3722686 

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

    Std.Obs Expectation    Variance 
 3.62783716  0.14814843  0.00381651 

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

Related to rtest.between in ade4...