med.test {ANSM5} | R Documentation |
Perform Median test
Description
med.test()
performs the Median test and is used in chapters 6 and 7 of "Applied Nonparametric Statistical Methods" (5th edition)
Usage
med.test(
x,
y,
H0 = NULL,
alternative = c("two.sided", "less", "greater"),
CI.width = 0.95,
max.exact.cases = 1000,
do.asymp = FALSE,
do.exact = TRUE,
do.CI = TRUE
)
Arguments
x |
Numeric vector of same length as y |
y |
Numeric vector, or factor of same length as x |
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 |
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.7 from "Applied Nonparametric Statistical Methods" (5th edition)
med.test(ch6$males, ch6$females)
# Example 7.5 from "Applied Nonparametric Statistical Methods" (5th edition)
med.test(ch7$time, ch7$surgeon, do.exact = FALSE, do.asymp = TRUE)
[Package ANSM5 version 1.1.0 Index]