Learn R Programming

CoinMinD (version 1.2.1)

QH: QH: Quesenberry and Hurst Method for Simultaneous Confidence Intervals

Description

Computes simultaneous confidence intervals for multinomial proportions using the Quesenberry and Hurst (1964) method. The function calculates lower and upper confidence limits for each category, adjusts them to remain within the valid [0, 1] range, and computes the overall interval volume (the product of the interval widths).

Usage

QH(inpmat, alpha)

Value

Prints the original and adjusted confidence intervals for each category, as well as the overall volume of the simultaneous confidence intervals.

Arguments

inpmat

Integer vector of observed cell counts corresponding to a categorical dataset. Must contain non-negative values.

alpha

Desired statistical significance level

Author

Dr. M. Subbiah

Details

This function implements the simultaneous confidence interval method proposed by Quesenberry and Hurst (1964) for multinomial proportions. It adjusts each interval to ensure limits remain within the [0, 1] range.

References

Quesenberry, C. P., and Hurst, D. C. (1964). *Large Sample Simultaneous Confidence Intervals for Multinomial Proportions.* Technometrics, **6**, 191–195.

See Also

BMDE, WALD, WS

Examples

Run this code
y <- c(44, 55, 43, 32, 67, 78)
z <- 0.05
QH(y, z)

Run the code above in your browser using DataLab