Last data update: 2014.03.03

R: Computes a critical value for the Hayter-Stone W* asymptotic...
cHayStonLSAR Documentation

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

Description

This function computes the critical value for the Hayter-Stone W* asymptotic distriburion at the given alpha level.

Usage

cHayStonLSA(alpha,k,delta=.001)

Arguments

alpha

A numeric value between 0 and 1.

k

A numeric value indicating the number of the data groups (with assumed equal sizes).

delta

Increment used to create the grid on which the distribution will be approximated.

Details

The Asymptotic distribution requires that all (unspecified) group sizes are equal.

Value

Returns the cutoff (based on the specified grid) with upper tail probability nearest to alpha.

Author(s)

Grant Schneider

References

Hayter, Anthony J., and Wei Liu. "Exact calculations for the one-sided studentized range test for testing against a simple ordered alternative." Computational statistics & data analysis 22.1 (1996): 17-25.

Examples

##Hollander-Wolfe-Chicken Example 6.7 Motivational Effect of Knowledge of Performance:
cHayStonLSA(.0553,3,delta=0.01)

##Section preceding Example 6.7 (explaining LSA)
cHayStonLSA(.05,6,delta=0.01)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(NSM3)
Loading required package: combinat

Attaching package: 'combinat'

The following object is masked from 'package:utils':

    combn

Loading required package: MASS
Loading required package: partitions
Loading required package: survival
fANCOVA 0.5-1 loaded
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/NSM3/cHayStonLSA.Rd_%03d_medium.png", width=480, height=480)
> ### Name: cHayStonLSA
> ### Title: Computes a critical value for the Hayter-Stone W* asymptotic
> ###   distribution.
> ### Aliases: cHayStonLSA
> ### Keywords: Hayter-Stone LSA
> 
> ### ** Examples
> 
> ##Hollander-Wolfe-Chicken Example 6.7 Motivational Effect of Knowledge of Performance:
> cHayStonLSA(.0553,3,delta=0.01)
[1] 2.86
> 
> ##Section preceding Example 6.7 (explaining LSA)
> cHayStonLSA(.05,6,delta=0.01)
[1] 3.67
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>