Perform permutation test for a linear statistic
doTest(object, teststat = c("maximum", "quadratic", "scalar"),
alternative = c("two.sided", "less", "greater"), pvalue = TRUE,
lower = FALSE, log = FALSE, PermutedStatistics = FALSE,
minbucket = 10L, ordered = TRUE, maxselect = object$Xfactor,
pargs = GenzBretz())
A list.
an object returned by LinStatExpCov
.
type of test statistic to use.
alternative for scalar or maximum-type statistics.
a logical indicating if a p-value shall be computed.
a logical indicating if a p-value (lower
is FALSE
)
or 1 - p-value (lower
is TRUE
) shall be returned.
a logical, if TRUE
probabilities are log-probabilities.
a logical, return permuted test statistics.
minimum weight in either of two groups for maximally selected statistics.
a logical, if TRUE
maximally selected statistics assume
that the cutpoints are ordered.
a logical, if TRUE
maximally selected statistics are
computed. This requires that X
was an implicitly defined design
matrix in LinStatExpCov
.
arguments as in GenzBretz
.
Computes a test statistic, a corresponding p-value and, optionally, cutpoints for maximally selected statistics.