cJCK: Computes a critical value for the Jonckheere-Terpstra J distribution.
Description
This function computes the critical value for the Jonckheere-Terpstra J distribution at (or typically in the "Exact" case, close to) the given alpha level. The function takes advantage of Harding's (1984) algorithm to quickly generate the distribution.
Usage
cJCK(alpha, n, method=NA, n.mc=10000)
Arguments
Value
Returns a list with "NSM3Ch6c" class containing the following components:nnumber of observations in the k data groupscutoff.Uupper tail cutoff at or below user-specified alphatrue.alpha.Utrue alpha level corresponding to cutoff.U (if method="Exact")
References
Harding, E. F. "An efficient, minimal-storage procedure for calculating the Mann-Whitney U, generalized U and similar distributions." Applied statistics (1984): 1-6.
##Hollander-Wolfe-Chicken Example 6.2 Motivational Effect of Knowledge of PerformancecJCK(.0490, c(6,6,6),"Exact")
cJCK(.0490, c(6,6,6),"Monte Carlo")
cJCK(.0231, c(6,6,6),"Exact")