Description Usage Arguments Details Value Note Author(s) References See Also Examples
Performs the Siegel-Tukey test on data x
and y
, where ties are handled by averaging ranks,
not by asymptotic approximations.
1 2 | siegel.test(x, y, alternative = c("two.sided", "less", "greater"), reverse = FALSE,
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 |
reverse |
Logical; If |
all.perms |
Logical. The exact p-value is attempted when |
num.sim |
The upper limit on the number of permutations generated. |
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.
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. |
The formulas computed within siegel.test
are based on the textbook by Higgins (2004).
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.
ansari.test
, rmd.test
, and perm.test
1 2 3 4 | # 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 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.