rmd.test {jmuOutlier} | R Documentation |
Ratio Mean Deviance Test
Description
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 |
all.perms |
Logical. The exact p-value is attempted when |
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. |
Note
The formulas computed within rmd.test
are based on the textbook by Higgins (2004).
Author(s)
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
References
Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.
See Also
ansari.test
, siegel.test
, and perm.test
Examples
rmd.test( c(13, 34, 2, 19, 49, 63), c(17, 29, 22) )
rmd.test( c(13, 34, 2, 19, 49, 63), c(17, 29, 22), "greater" )