Learn R Programming

NSM3 (version 1.18)

pMaxCorrNor: Function to compute the upper tail probability of the maximum of k N(0,1) random variables with common correlation for a given cutoff.

Description

Uses the integrate function based on the method proposed in Gupta, Panchapakesan and Sohn (1983).

Usage

pMaxCorrNor(x,k,rho)

Value

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

Arguments

x

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

k

Number of random variables.

rho

Common correlation between the random variables.

Author

Grant Schneider

References

Gupta, Shanti S., S. Panchapakesan, and Joong K. Sohn. "On the distribution of the studentized maximum of equally correlated normal random variables." Communications in Statistics-Simulation and Computation 14.1 (1985): 103-135.

Examples

Run this code
##Hollander-Wolfe-Chicken Section 7.14
pMaxCorrNor(2.575,5,.3)

##Hollander-Wolfe-Chicken Example 7.14 Effect of Weight on Forearm Tremor Frequency
pMaxCorrNor(1.93,5,.452)

Run the code above in your browser using DataLab