| rmd.test | R Documentation |
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.
rmd.test(x, y, alternative = c("two.sided", "less", "greater"), all.perms = TRUE,
num.sim = 20000)
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. |
alternative |
Same as the input. |
rmd.hat |
The value of the RMD test statistic. |
p.value |
The p-value of the test. |
The formulas computed within rmd.test are based on the textbook by Higgins (2004).
For each of the two original datasets x and y, the centered dataset is produced by subtracting the individual sample median.
The RMD test permutes the combined data from the two centered datasets, not from the two original datasets.
The p-value is referred to as exact when all possible permutations are produced exactly once,
and the p-value is referred to as estimated when based on simulations.
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.
ansari.test, siegel.test, and perm.test
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" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.