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 NULL)

alternative

Type of alternative hypothesis (defaults to two.sided)

mean.shift

Boolean indicating whether mean shift to be used instead of median shift (defaults to FALSE)

cont.corr

Boolean indicating whether or not to use continuity correction (defaults to TRUE)

max.exact.cases

Maximum number of cases allowed for exact calculations (defaults to 1000)

seed

Random number seed to be used for Monte Carlo simulations (defaults to NULL)

do.asymp

Boolean indicating whether or not to perform asymptotic calculations (defaults to FALSE)

do.exact

Boolean indicating whether or not to perform exact calculations (defaults to TRUE)

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)


[Package ANSM5 version 1.1.0 Index]