siegel.tukey {ANSM5} | R Documentation |
Perform Siegel-Tukey test
Description
siegel.tukey()
performs the Siegel-Tukey test using mean or median shift and is used in chapter 6 of "Applied Nonparametric Statistical Methods" (5th edition)
Usage
siegel.tukey(
x,
y,
H0 = NULL,
alternative = c("two.sided", "less", "greater"),
mean.shift = FALSE,
cont.corr = TRUE,
max.exact.cases = 1000,
seed = NULL,
do.asymp = FALSE,
do.exact = TRUE
)
Arguments
x |
Numeric vector |
y |
Numeric vector |
H0 |
Null hypothesis value (defaults to |
alternative |
Type of alternative hypothesis (defaults to |
mean.shift |
Boolean indicating whether mean shift to be used instead of median shift (defaults to |
cont.corr |
Boolean indicating whether or not to use continuity correction (defaults to |
max.exact.cases |
Maximum number of cases allowed for exact calculations (defaults to |
seed |
Random number seed to be used for Monte Carlo simulations (defaults to |
do.asymp |
Boolean indicating whether or not to perform asymptotic calculations (defaults to |
do.exact |
Boolean indicating whether or not to perform exact calculations (defaults to |
Value
An ANSMtest object with the results from applying the function
Examples
# Exercise 6.11 from "Applied Nonparametric Statistical Methods" (5th edition)
siegel.tukey(ch6$typeA, ch6$typeB, mean.shift = TRUE)
# Exercise 6.16 from "Applied Nonparametric Statistical Methods" (5th edition)
siegel.tukey(ch6$travel, ch6$politics)