control.median {ANSM5}R Documentation

Perform Control median test

Description

control.median() performs the Control median test and is used in chapters 6 and 9 of "Applied Nonparametric Statistical Methods" (5th edition)

Usage

control.median(
  x,
  y,
  H0 = NULL,
  alternative = c("two.sided", "less", "greater"),
  CI.width = 0.95,
  max.exact.cases = 1000,
  nsims.mc = 10000,
  seed = NULL,
  do.asymp = FALSE,
  do.exact = TRUE,
  do.CI = TRUE
)

Arguments

x

Numeric vector

y

Numeric vector

H0

Null hypothesis value (defaults to NULL)

alternative

Type of alternative hypothesis (defaults to two.sided)

CI.width

Confidence interval width (defaults to 0.95)

max.exact.cases

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

nsims.mc

Number of Monte Carlo simulations to be performed (defaults to 10000)

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)

do.CI

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

Value

An ANSMtest object with the results from applying the function

Examples

# Example 6.9 from "Applied Nonparametric Statistical Methods" (5th edition)
control.median(ch6$sampleI, ch6$sampleII, alternative = "greater")

# Exercise 9.8 from "Applied Nonparametric Statistical Methods" (5th edition)
control.median(ch9$bulbA, ch9$bulbB, alternative = "greater", nsims = 1000)


[Package ANSM5 version 1.1.0 Index]