kendall.tau {ANSM5} | R Documentation |
Perform Kendall's tau
Description
kendall.tau()
performs the Kendall's tau and is used in chapter 10 of "Applied Nonparametric Statistical Methods" (5th edition)
Usage
kendall.tau(
x,
y,
alternative = c("two.sided", "less", "greater"),
max.exact.cases = 10,
nsims.mc = 1e+05,
seed = NULL,
do.asymp = FALSE,
do.exact = TRUE,
do.mc = FALSE
)
Arguments
x |
Numeric vector of same length as y |
y |
Numeric vector of same length as x |
alternative |
Type of alternative hypothesis (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.mc |
Boolean indicating whether or not to perform Monte Carlo calculations (defaults to |
Value
An ANSMstat object with the results from applying the function
Examples
# Example 10.8 from "Applied Nonparametric Statistical Methods" (5th edition)
kendall.tau(ch10$death.year, app1$McDelta, alternative = "greater",
do.asymp = TRUE, do.exact = FALSE)
# Example 10.9 from "Applied Nonparametric Statistical Methods" (5th edition)
kendall.tau(ch10$Canadian, ch10$Australian)