A permutation test is performed based on the estimated RMD,
the ratio of the mean of the absolute value of the deviances, for data x and y.
Usage
rmd.test(x, y, alternative = c("two.sided", "less", "greater"), all.perms = TRUE,
num.sim = 20000)
Arguments
x
Numeric vector of data values.
y
Numeric vector of data values.
alternative
A character string specifying the alternative hypothesis, and
must be one of "two.sided" (default), "greater" or "less".
Only the initial letter needs to be specified.
all.perms
Logical. The exact p-value is attempted when all.perms (i.e., all permutations)
is TRUE (default), and is simulated when all.perms is FALSE or when
computing an exact p-value requires more than num.sim calculations.
num.sim
The upper limit on the number of permutations generated.
Value
alternative
Same as the input.
rmd.hat
The value of the RMD test statistic.
p.value
The p-value of the test.
References
Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.