cox.stuart | R Documentation |
cox.stuart()
performs the Cox-Stuart test and is used in chapters 4 and 10 of "Applied Nonparametric Statistical Methods" (5th edition)
cox.stuart(
x,
alternative = c("two.sided", "less", "greater"),
cont.corr = TRUE,
max.exact.cases = 1e+07,
do.asymp = FALSE,
do.exact = TRUE
)
x |
Numeric vector |
alternative |
Type of alternative hypothesis (defaults to |
cont.corr |
Boolean indicating whether or not to use continuity correction (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 |
An ANSMtest object with the results from applying the function
# Example 4.13 from "Applied Nonparametric Statistical Methods" (5th edition)
cox.stuart(ch4$precipitation)
# Exercise 10.5 from "Applied Nonparametric Statistical Methods" (5th edition)
cox.stuart(app1$McDelta[order(ch10$death.year)], alternative = "less")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.