Learn R Programming

NSM3 (version 1.1)

cHaySton: Computes a critical value for the Hayter-Stone W* distribution.

Description

This function computes the critical value for the Hayter-Stone W* distriburion at (or typically in the "Exact" and "Monte Carlo" cases, close to) the given alpha level.

Usage

cHaySton(alpha,n, method=NA, n.mc=10000)

Arguments

Value

Returns a list with "NSM3Ch6MCc" class containing the following components:ndata group sizesnum.compnumber of multiple comparisons to be made (based on the length of n)cutoff.Uupper tail cutoff at or below user-specified alphatrue.alpha.Utrue alpha level corresponding to cutoff.U (if method="Exact" or "Monte Carlo")

Details

The Asymptotic distribution requires that all group sizes are equal. If method="Asymptotic" and there are different group sizes in n, method="Monte Carlo" will be used.

Examples

Run this code
##Hollander-Wolfe-Chicken Example 6.7 Motivational Effect of Knowledge of Performance:
#cHaySton(.0553,rep(6,3),"Monte Carlo")
cHaySton(.05,c(6,6,6),"Asymptotic")

Run the code above in your browser using DataLab