Learn R Programming

NSM3 (version 1.18)

cBohnWolfe: Function to compute a critical value for the Bohn-Wolfe U distribution.

Description

This function uses Monte Carlo sampling to compute the critical value for the Bohn-Wolfe U distribution at (or close to) the given alpha level. The Monte Carlo samples are simulated based on the order statistics of a uniform(0,1) distribution.

Usage

cBohnWolfe(alpha,k,q,c,d,method="Monte Carlo",n.mc=10000)

Value

Returns a list with "NSM3Ch5c" class containing the following components:

m

number of observations in RSS for the first data group (X)

n

number of observations in RSS for the second data group (Y)

cutoff.U

upper tail cutoff at or below user-specified alpha

true.alpha.U

true alpha level corresponding to cutoff.U

Arguments

alpha

A numeric value between 0 and 1.

k

A numeric value indicating the set size of the first data group in the RSS (X).

q

A numeric value indicating the set size of the second data group in the RSS (Y).

c

A numeric value indicating the number of cycles for the first data group in the RSS (X).

d

A numeric value indicating the number of cycles for the second data group in the RSS (Y).

method

For this procedure, method is currently set automatically to "Monte Carlo" as the only option that is available. For standardization with other critical value procedures in the NSM3 package, "Asymptotic" and "Exact" will be supported in future versions.

n.mc

Number of Monte Carlo samples used to estimate the distribution of U.

Author

Grant Schneider

References

Bohn, Lora L., and Douglas A. Wolfe. "Nonparametric two-sample procedures for ranked-set samples data." Journal of the American Statistical Association 87.418 (1992): 552-561.

Examples

Run this code
cBohnWolfe(.0515,4,4,5,5)
cBohnWolfe(.0303,2,3,3,3)

Run the code above in your browser using DataLab