pRangeNor: Function to compute the upper-tail probability of the range...

View source: R/pRangeNor.R

pRangeNorR Documentation

Function to compute the upper-tail probability of the range of k independent N(0,1) random variables for a given cutoff.

Description

Uses the integrate function based on the method proposed in Harter (1960).

Usage

pRangeNor(x,k)

Arguments

x

Cutoff at which the upper-tail P-value is to be calculated.

k

Number of independent Normal random variables.

Value

Returns the upper tail probability at the user-specified cutoff.

Author(s)

Grant Schneider

References

Harter, H. Leon. "Tables of range and studentized range." The Annals of Mathematical Statistics (1960): 1122-1147.

Examples

##Hollander-Wolfe-Chicken Example 7.3 Rounding First Base
pRangeNor(4.121,3)

##Hollander-Wolfe-Chicken Example 7.7 Chemical Toxicity
pRangeNor(4.171,7)

NSM3 documentation built on Nov. 4, 2024, 5:08 p.m.

Related to pRangeNor in NSM3...