cKW: Computes a critical value for the Kruskal-Wallis H distribution.
Description
This function computes the critical value for the Kruskal-Wallis H distribution at (or typically in the "Exact" and "Monte Carlo" cases, close to) the given alpha level.
Usage
cKW(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" or "Monte Carlo")
##Hollander-Wolfe-Chicken Example 6.1 Half-Time of Mucociliary Clearance#cKW(0.0503,c(5,4,5),"Exact")cKW(0.7147,c(5,4,5),"Asymptotic")
cKW(0.7147,c(5,4,5),"Monte Carlo",n.mc=20000)