Abstract
Clustered binary data are commonly encountered in many medical research studies with several binary outcomes from each cluster. Asymptotic methods are traditionally used for confidence interval calculations. However, these intervals often have unsatisfactory performance with regards to coverage for a study with a small sample size or the actual proportion near the boundary. To improve the coverage probability, exact Buehler’s one-sided intervals may be utilized, but they are computationally intensive in this setting. Therefore, we propose using importance sampling to calculate confidence intervals that almost always guarantee the coverage. We conduct extensive simulation studies to compare the performance of the existing asymptotic intervals and the new accurate intervals using importance sampling. The new intervals based on the asymptotic Wilson score for sample space ordering perform better than others, and they are recommended for use in practice.
Keywords
1 Introduction
Clustered binary data have become increasingly common in many scientific disciplines. For example, the Age-Related Eye Disease Study (AREDS) was a multi-center clinical trial to investigate age-related macular degeneration and visual acuity. 1 In this study, participants were randomized to receive one of the following four nutritional supplements: (1) antioxidants; (2) zinc; (3) antioxidants plus zinc; or (4) placebo. The primary outcome was defined as whether eyes had central geographic atrophy by year 5. The diagnostic results of both eyes at the end of year 5 were clustered within each participant and the assigned group. Another example was a case-control study of chronic obstructive pulmonary disease (COPD) with 100 clusters having the cluster size up to 6.2
The primary outcome in that COPD study was binary as the diagnostic result of impaired pulmonary function (IPF). For clustered binary data, outcomes from different clusters are assumed to be independent from each other, while outcomes from the same cluster are correlated. Traditional statistical methods for independent samples may not be appropriate to analyze clustered binary data with the potential of having biased estimates and power loss.3,4 George and Bowman 5 proposed a likelihood procedure to estimate parameters under the assumption that outcomes from each cluster are exchangeable. The assumption of exchangeability is suitable for many studies, such as ophthalmologic studies where both eyes are assigned with the same treatment, or a family study where all siblings are interviewed using the same survey. Under this assumption, George and Bowman 5 derived the distribution for the number of responses. Later, Mehta 6 proposed an exact conditional approach by fixing all marginals of these data for p-value calculation based on an efficient network search algorithm. Exact approaches are recommended when both the number of clusters and the cluster sizes are small. Exact unconditional approaches are preferable here as they align with the data generating mechanism with the total sample size fixed, not the total number of responses. However, exact unconditional approaches are computationally intensive for clustered binary data for two reasons: the computational issue from the number of nuisance parameters that need to be controlled, and the memory issue to store all the possible data.
Confidence intervals for proportion in clustered binary data have been studied for decades. Kwak et al. 7 proposed a confidence interval for a single proportion based on a chi-squared test. Later, Saha et al. 8 developed two confidence intervals based on the likelihood method and the Wilson score method for clustered binary data. They recommended the Wilson score interval as its coverage probability is closer to the nominal level. Recently, Short et al. 9 proposed a continuity corrected Wilson score interval that improves the coverage when the cluster size is not too small. All these existing confidence intervals are asymptotic, and they generally do not have satisfactory performance with regards to coverage for a small sample size or the actual proportion being near the boundary. For these reasons, we propose using importance sampling (IS) to estimate tail probabilities for confidence interval calculations. By inverting a tail probability which is often for a one-sided hypothesis testing problem, the associated confidence limit can be computed.
The IS method avoids the step to enumerate all possible data in the sample space as in exact approaches. Importance sampling is a general method to estimate integrals of functions for continuous outcomes and estimate tail probabilities for discrete outcomes. The confidence interval using the IS method has to be computed in conjunction with a statistical quantity to order the sample space. The interval estimated by the IS method is generally very close to the exact limit based on Buehler’s method in cases that the exact intervals can be computed.10–13 Although the IS interval is not exact, it is highly accurate with the actual coverage probability close to the nominal level. The IS interval has good statistical properties for discrete data (e.g. two independent proportions).14–18
The rest of the article is organized as follows. In Section 2, we first give a brief introduction of the existing asymptotic intervals for proportion in the presence of clustered binary data, and then introduce the IS method and its confidence limit calculation. In Section 3, we compare the performance of the existing asymptotic intervals and the proposed accurate intervals with regards to coverage probability, followed by the width comparison among the accurate intervals. A case-control COPD study is used to illustrate the application of the new intervals. Finally, we provide some additional comments on data analysis for clustered binary data in Section 4.
2 Methods
For a study with clustered binary data, data can be organized in a K by 2 table, where K is the number of clusters, see Table 1. In the
Data for a study with clustered binary outcome, with K clusters.
This estimator can be viewed as the weighted average response rate across clusters, where the individual weights correspond to the cluster size:
In this article, π is the parameter of interest. In addition to this estimate, one has to estimate the correlation of observations within clusters. That is often known as the intraclass correlation coefficient (ICC), ρ, which provides a quantitative measure of within-cluster correlation. The ICC can be estimated by using at least 16 methods as reviewed by Chakraborty and Hossain, 20 who developed an R package ICCbin to implement these methods to estimate ρ as well as five confidence intervals. It should be noted that some methods could fail to estimate ρ in some cases as discussed by Chakraborty and Hossain. 20 Among the 16 methods, the ANOVA-based approach has a closed formula for the estimate of ρ, and this estimate is used in this article.9,21
2.1 Asymptotic intervals
Several asymptotic intervals for proportion in the presence of clustered binary data have been developed: the Wald interval, which ignores the dependence from data; ones that conduct separate analyses by cluster sizes; and ones that consider the correlation nature of such data. 1 We review the commonly used intervals and the recommended intervals from literature in this article.
2.1.1 Wald interval
The interval based on the Wald test is naive as it ignores the correlation of observations from the same cluster. Under the independence assumption, the variance of
2.1.2 Kwak interval
Kwak et al.
7
proposed a chi-squared variance estimate using the difference between the observed responses (
2.1.3 Wilson interval
The Wilson score method has been utilized in many research areas to improve the performance of confidence intervals. The score method computes the intervals directly from a quadratic equation by skipping the step of variance estimation to reduce bias.
22
Saha et al.
8
were among the first to develop the Wilson score interval for proportion in the presence of clustered binary data, based on the following test statistic
The test statistic S follows the standard normal asymptotically. The score intervals can be calculated by solving the following quadratic equation
8
It follows that the
Saha et al. 8 also introduced a confidence interval based on the likelihood ratio (LR) test statistic, which was shown to be inferior to the Wilson interval in that the Wilson intervals are closer to the nominal level. In addition, the LR method requires additional computational efforts to determine the likelihood function under the null hypothesis and that under the alternative hypothesis. For these reasons, the LR interval is not included in the following comparison.
2.1.4 Wilson interval with continuity correction
Recently, Short et al.
9
developed a continuity correction of the Wilson interval (WCC) by adding a correction factor
Similar to the WI interval, the WCC interval can be computed as
We provide the following theorem for the relationship between the WI interval and the WCC interval.
The WI interval is nested in the WCC interval.
The upper limit of the WCC interval is computed as the solution of
Suppose πu is the upper limit of the WI interval. Then, πu is the solution of the following equation
where
The ranges for π and
Similarly, the lower limit of the WCC method is always smaller than that based on the WI method. Thus, the WI interval is nested in the WCC interval.
Because of the nesting relationship between the WI interval and the WCC interval, the WCC interval has coverage that is always higher than the WI interval. When both intervals have coverage above the nominal level, the WI interval is preferable. Otherwise, the WCC interval is better.
2.2 Accurate intervals
Exact upper limit and exact lower limit are computed separately to construct exact two-sided intervals (e.g. Fisher’s exact confidence interval for proportion). Exact one-sided intervals based on the method by Buehler
10
may be utilized to guarantee the coverage probability, by finding the smallest upper limit for π such that the coverage probability is preserved over the range of the nuisance parameter ρ. In the exact upper limit calculation, the sample space is ordered by a statistical quantity T (e.g. the upper limit from the asymptotic WI interval). It should be noted that the quantity T for sample space ordering is not necessarily a test statistic. Given the sizes of each cluster (mi,
After the sample space is ordered by
In Buehler’s exact interval, one has to enumerate all possible data in the sample space, and compute their
This approach is recommended for use when the sample space is small.
11
For clustered binary data, the sample space would be too large to be handled on a personal computer.
21
For example, for a study with K = 30 clusters and a common cluster size mi = 9 (
When the full enumeration of the sample space is difficult to achieve, Kabaila and Lloyd
14
proposed a profile one-sided limit for discrete data. Their proposed method has the computed limit close to Buehler’s exact limit, although their interval does not theoretically guarantee the coverage probability. This approach does not have to enumerate all possible data in the confidence interval calculation. The upper profile limit is computed as the supremum of the collection of π such that
The tail probability is presented as
Under the assumption of exchangeability of observations within cluster,
23
clustered binary data presented in Table 1 can be stratified by the cluster size. The
Suppose M is the maximum cluster size. Among all the data sets in the tail area
The number of total responses given a cluster size (m) follows a multinomial distribution with the probability
Observations from different clusters are assumed to be independent from each other, while the outcomes from the same cluster are correlated. It follows that the tail probability in equation (5) can be written as
For a study with clustered binary outcome, it is difficult to utilize full enumeration in exact approaches to estimate
For an observed data x, it is easy to compute the estimates of
The accurate upper limit is computed as the solution of
Importance sampling is able to reduce computational intensity by avoiding to enumerate all possible data. At the same time, its estimate has a very good approximation to the distribution of interest.
14
It has been recommended to choose the importance distribution as a member of the model family
In summary, we compute 100
3 Results
We compare the performance of the proposed accurate intervals (ED-IS, KS-IS, WI-IS, and WCC-IS) and the existing asymptotic intervals (ED, KS, WI, and WCC). The Wald interval is not included in the comparison due to its relatively poor performance as already found in the literature.
9
For simplicity, we assume all the clusters have the same size (
Figure 1 presents the coverage probabilities for the eight considered intervals when K = 30. Among the asymptotic intervals, the KW interval often has the least coverage probability, which confirms the findings by Short et al. 9 The ED interval generally has higher coverage probabilities than others; however, it is sometimes the lowest when both ρ and π are small. When m = 2, the WI interval’s coverage is much closer to the nominal level than the WCC interval, while this trend is revised when m = 6, or 10. The asymptotic intervals’ coverages at π near 0.5 are much closer to 95% as compared to those at π near the boundary with the actual coverage probabilities being as low as 88%.

Coverage probabilities of asymptotic intervals and accurate intervals when the number of clusters K = 30, with the cluster size m = 2 (top), m = 6 (middle), and m = 10 (bottom), at
The proposed accurate intervals almost always guarantee the coverage probability as seen in Figure 1. They are generally conservative with the actual coverage probability above the nominal level. It should be noted that these accurate upper and lower limits are calculated separately to have good properties for one-sided intervals. For this reason, it is expected that the two-sided accurate intervals may be slightly conservative. From a practical perspective, it is better to have confidence intervals that guarantee coverage rather than ones that do not. Among these four accurate intervals, the score method intervals (WI-IS, WCC-IS) have very similar coverages, and the ED-IS interval could be the most conservative one among them when the cluster size m is small or π is near the boundary. We observe similar results in Figures 2 and 3 when K = 80 and K = 200. As the number of clusters K goes up, the asymptotic intervals have coverages closer to 95% when π is near 0.5. However, their coverages are still much below the nominal level when

Coverage probabilities of asymptotic intervals and accurate intervals when the number of clusters K = 80, with the cluster size m = 2 (top), m = 6 (middle), and m = 10 (bottom), at

Coverage probabilities of asymptotic intervals and accurate intervals when the number of clusters K = 200, with the cluster size m = 2 (top), m = 6 (middle), and m = 10 (bottom), at
The proposed accurate intervals based on importance sampling usually guarantee the coverage probability. We further compare them with regards to the width of all intervals from the 180 configurations (

Width comparisons among the accurate intervals from all 180 parameter configurations.
3.1 Example
We use the clustered binary data set from the COPD study reported by Liang et al.
2
to illustrate the application of the proposed accurate intervals. The COPD study had K = 100 clusters, with the cluster sizes from 1 to 6. There were a total of 203 individuals. The primary outcome was the diagnostic result of IPF for each participant (normal or abnormal). The rate of IPF was estimated as
Table 2 presents the two-sided 95% asymptotic intervals. The results indicate that the WI interval is nested in the WCC interval as proved in Section 2. The KW interval is much wider than the other three asymptotic intervals. Table 2 also presents the accurate intervals based on 10,000 importance samples. Estimates of
Asymptotic and accurate intervals for the COPD study.
The COPD data set have clusters with the sizes of 1, 2, 3, 4, and 6. The estimated IPF rates for these clusters are: 0.250, 0.196, 0.373, 0.179, and 0.500, respectively. The clusters with the size of 3 and 6 have relatively higher rates than others. Table 3 presents the accurate intervals using
Accurate intervals based on importance sampling with data simulated from a common
4 Discussion
In this article, we propose accurate intervals for proportion in the presence of clustered binary outcome. The existing asymptotic intervals often have unsatisfactory performance with regards to coverage probability for studies with small sample sizes or the actual proportion near the boundary. The accurate intervals control for the coverage in general, although they could be conservative in some configurations. One easy strategy to improve the accurate intervals is to adjust the nominal level, for example, from 95% to 94%. Based on the results from the simulation studies, the coverage probabilities of the proposed accurate intervals are around 1% higher than the nominal level when K = 200. By reducing the nominal level by 1%, we may have the actual coverage of the accurate intervals being closer to 95%.
In the COPD study, we compute the IS intervals by simulating data based on the estimated
In addition to heterogeneity of proportions, heterogeneity of ρ may arise from some data.27–29 IntHout et al.
27
suggested using prediction intervals by adding
Footnotes
Acknowledgements
The authors are very grateful to the Editor, Associate Editor, and two reviewers for their insightful comments that helped improve the manuscript. They thank Ms Victoria Hawkins for language editing and proofreading.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: GS’s research is partially supported by grants from the National Institute of General Medical Sciences from the National Institutes of Health (grant no. P20GM109025).
