siegel.test {jmuOutlier} | R Documentation |
Siegel-Tukey Test
Description
Performs the Siegel-Tukey test on data x
and y
, where ties are handled by averaging ranks,
not by asymptotic approximations.
Usage
siegel.test(x, y, alternative = c("two.sided", "less", "greater"), reverse = FALSE,
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 |
reverse |
Logical; If |
all.perms |
Logical. The exact p-value is attempted when |
num.sim |
The upper limit on the number of permutations generated. |
Details
Since the logical value of reverse
may affect the p-value,
yet neither logical value of reverse
is preferred over the other, one should
consider using ansari.test
instead.
Value
alternative |
Same as the input. |
rank.x |
The Siegel-Tukey ranks of the data |
rank.y |
The Siegel-Tukey ranks of the data |
p.value |
The p-value of the test. |
Note
The formulas computed within siegel.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
, rmd.test
, and perm.test
Examples
# The same data are used in the following two commands.
siegel.test( c(13, 34, 2, 19, 49, 63), c(17, 29, 22) )
siegel.test( c(13, 34, 2, 19, 49, 63), c(17, 29, 22), reverse=TRUE )