WS: WS: Wilson Score Method for Simultaneous Confidence Intervals
Description
Computes Wilson score-type simultaneous confidence intervals for multinomial
proportions. The Wilson method improves upon the Wald interval by ensuring
better coverage probabilities, especially for small samples or proportions
near 0 or 1.
Usage
WS(inpmat, alpha)
Value
Prints the original and adjusted confidence intervals for each category,
along with the volume (product of interval widths).
Arguments
inpmat
Integer vector of observed cell counts corresponding to a
categorical dataset. All values must be non-negative.
alpha
Desired statistical significance level
Author
Dr. M. Subbiah
Details
This approach adjusts both the center and width of the confidence interval
to account for the sampling distribution of proportions, leading to
non-symmetric intervals that perform better than the simple Wald intervals.
References
Wilson, E. B. (1927).
*Probable Inference, the Law of Succession, and Statistical Inference.*
Journal of the American Statistical Association, **22**, 209–212.