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 |
alternative |
Type of alternative hypothesis (defaults to |
CI.width |
Confidence interval width (defaults to |
max.exact.cases |
Maximum number of cases allowed for exact calculations (defaults to |
nsims.mc |
Number of Monte Carlo simulations to be performed (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 |
do.CI |
Boolean indicating whether or not to perform confidence interval calculations (defaults to |
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)