ExactCIdiff: An R Package for Computing Exact Confidence Intervals for the Difference of Two Proportions

被引:0
|
作者
Shan, Guogen [1 ]
Wang, Weizhen [2 ,3 ]
机构
[1] Univ Nevada, Sch Community Hlth Sci, Dept Environm & Occupat Hlth, Las Vegas, NV 89154 USA
[2] Beijing Univ Technol, Coll Appl Sci, Beijing 100124, Peoples R China
[3] Wright State Univ, Dept Math & Stat, Dayton, OH 45435 USA
来源
R JOURNAL | 2013年 / 5卷 / 02期
关键词
BINOMIAL PROPORTIONS; CONSTRUCTION;
D O I
暂无
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Comparing two proportions through the difference is a basic problem in statistics and has applications in many fields. More than twenty confidence intervals (Newcombe, 1998a,b) have been proposed. Most of them are approximate intervals with an asymptotic infimum coverage probability much less than the nominal level. In addition, large sample may be costly in practice. So exact optimal confidence intervals become critical for drawing valid statistical inference with accuracy and precision. Recently, Wang (2010, 2012) derived the exact smallest (optimal) one-sided 1 - alpha confidence intervals for the difference of two paired or independent proportions. His intervals, however, are computer-intensive by nature. In this article, we provide an R package ExactCIdiff to implement the intervals when the sample size is not large. This would be the first available package in R to calculate the exact confidence intervals for the difference of proportions. Exact two-sided 1 - alpha interval can be easily obtained by taking the intersection of the lower and upper one-sided 1 - alpha/2 intervals. Readers may jump to Examples 1 and 2 to obtain these intervals.
引用
收藏
页码:63 / 71
页数:9
相关论文
共 50 条