ansari.bradley {ANSM5}R Documentation

Perform Ansari-Bradley test

Description

ansari.bradley() performs the Ansari-Bradley test and is used in chapter 6 of "Applied Nonparametric Statistical Methods" (5th edition)

Usage

ansari.bradley(
  x,
  y,
  H0 = NULL,
  alternative = c("two.sided", "less", "greater"),
  max.exact.cases = 25,
  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)

max.exact.cases

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

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

# Example 6.12 from "Applied Nonparametric Statistical Methods" (5th edition)
ansari.bradley(ch6$typeA, ch6$typeB)

# Exercise 6.16 from "Applied Nonparametric Statistical Methods" (5th edition)
ansari.bradley(ch6$travel, ch6$politics)


[Package ANSM5 version 1.1.0 Index]