Learn R Programming

ade4 (version 1.01)

randtest: Class of the Permutation Tests (in C).

Description

randtest is a generic function. It proposes methods for the following objects between, discrimin, coinertia ...

Usage

randtest(xtest, ...)
    plot.randtest(x, nclass = 10, coeff = 1, ...)
    as.randtest (sim, obs, call = match.call())
    print.randtest (x, ...)

Arguments

xtest
an object used to select a method
x
an object of class randtest
...
... further arguments passed to or from other methods; in plot.randtest to hist
nclass
a number of intervals for the histogram
coeff
to fit the magnitude of the graph
sim
a numeric vector of simulated values
obs
a numeric vector of an observed value
call
a call order

Value

  • as.randtest returns a list of class randtest plot.randtest draws the simulated values histograms and the position of the observed value

See Also

mantel.randtest, procuste.randtest, rtest

Examples

Run this code
par(mfrow = c(2,2))
for (x0 in c(2.4,3.4,5.4,20.4)) {
    l0 <- as.randtest(sim = rnorm(200), obs = x0)
    print(l0)
    plot(l0,main=paste("p.value = ", round(l0$pvalue, dig = 5)))
}
par(mfrow = c(1,1))

Run the code above in your browser using DataLab