 Research article
 Open Access
 Published:
Comparison of confidence interval methods for an intraclass correlation coefficient (ICC)
BMC Medical Research Methodology volume 14, Article number: 121 (2014)
Abstract
Background
The intraclass correlation coefficient (ICC) is widely used in biomedical research to assess the reproducibility of measurements between raters, labs, technicians, or devices. For example, in an interrater reliability study, a high ICC value means that noise variability (betweenraters and withinraters) is small relative to variability from patient to patient. A confidence interval or Bayesian credible interval for the ICC is a commonly reported summary. Such intervals can be constructed employing either frequentist or Bayesian methodologies.
Methods
This study examines the performance of three different methods for constructing an interval in a twoway, crossed, random effects model without interaction: the Generalized Confidence Interval method (GCI), the Modified Large Sample method (MLS), and a Bayesian method based on a noninformative prior distribution (NIB). Guidance is provided on interval construction method selection based on study design, sample size, and normality of the data. We compare the coverage probabilities and widths of the different interval methods.
Results
We show that, for the twoway, crossed, random effects model without interaction, care is needed in interval method selection because the interval estimates do not always have properties that the user expects. While different methods generally perform well when there are a large number of levels of each factor, large differences between the methods emerge when the number of one or more factors is limited. In addition, all methods are shown to lack robustness to certain hardtodetect violations of normality when the sample size is limited.
Conclusions
Decision rules and software programs for interval construction are provided for practical implementation in the twoway, crossed, random effects model without interaction. All interval methods perform similarly when the data are normal and there are sufficient numbers of levels of each factor. The MLS and GCI methods outperform the NIB when one of the factors has a limited number of levels and the data are normally distributed or nearly normally distributed. None of the methods work well if the number of levels of a factor are limited and data are markedly nonnormal. The software programs are implemented in the popular R language.
Background
Biological and physical quantities assessed for scientific studies must be measured with sufficient reproducibility for the study to produce meaningful results. For example, biological markers (“biomarkers”) are studied for many medical applications, including disease risk prediction, diagnosis, prognosis, monitoring, or optimal therapy selection. Variation in measurements occurs for numerous reasons. The measurements might have been made on different devices, may have involved subjective judgment of human raters (e.g., a pathologist assessing the number of tumor cells in a biopsy), or might have been made in different laboratories using different procedures. As another example, psychological instruments often score patients based on multiitem questionnaires completed by medical professionals. Variation in the resulting scores can be attributed to both variation among the patients and variation among the medical professionals performing the assessments. In many settings, it is not realistic to expect perfect concordance among replicate measurements, but one needs to achieve a level of reliability sufficient for the application area, such as a clinical setting. A common approach to quantify the reliability of a measurement process is to calculate the intraclass correlation coefficient (ICC) along with a confidence interval [1–4].
An interval can be constructed for the ICC using frequentist or Bayesian methods. Frequentist methods assure that the probability that the interval contains the parameter if the experiment is repeated many times is the nominal confidence level (e.g., 95%). In contrast to Frequentist methods, Bayesian methods provide a probability distribution for the parameter itself, given the data and the prior uncertainty. The distribution can be summarized by a credible interval, which reflects a nominal probability (e.g., 95%) region for the distribution. When little is known about the parameter of interest a priori, then a noninformative prior, which is often provided in the statistical software, can be used to construct the interval. The relative advantages of noninformative Bayesian and frequentist approaches in general are discussed in Berger [5] Chapter 4, Carlin and Louis [6] (Section 1.4), and elsewhere. General comparisons of the different approaches are beyond the scope of this paper. This paper focuses on two issues of applied interest discussed in the next paragraph.
Two critical and interrelated characteristics of a confidence interval method are (1) the coverage probability, and (2) the interval width. The coverage probability of a method should exactly match the confidence level, such as 95%. Coverage probability is a frequentist concept since the parameter is treated as a fixed number. The interval width is important to consider when comparing intervals because one often wants the shortest possible interval that maintains the nominal coverage. Coverage probability and interval width are important and relevant from both frequentist and objective Bayesian perspectives [7–13]. Frequentist coverage probabilities are interpretable in the Bayesian framework as well [14].
We study two applications in detail. The first application is a study by Barzman et al. [15]. They evaluated the Brief Rating of Aggression by Children and Adolescents (BRACHA), a 14item questionnaire instrument scored by emergency room staffers. BRACHA scores can be influenced by both the child being assessed and the adult performing the assessment. Interest was in whether different adult staffers scored the children in a similar way, as summarized by the intraclass correlation coefficient. These data were originally analyzed using Bayesian credible interval methods. The second application is the National Cancer Institute’s Director’s Challenge reproducibility study [16]. In this study, tissue samples were subdivided into separate sections, sections distributed to four laboratories, and microarray analysis performed at each laboratory. Interest was in whether different laboratories produced similar gene expression measurements for individual patients.
This paper considers the setting of a two factor, crossed, random effects model without interaction. We focus on this setting because it arises frequently in practical applications of interest [15–17], and because this focus enables us to examine different aspects of study design, data distribution, and Bayesian priors, without the scope of the paper becoming unwieldy. For the purposes of this study, we assume this model is appropriate for the data; the process of selecting an appropriate statistical model and agreement measure are outside the scope of this paper and are discussed thoroughly elsewhere [18, 19]. A random effects model is appropriate when each factor represents a random sample from a larger population [20]; for example, a factor may represent labs randomly drawn from all labs that could perform the assay. If the population of labs is small, a finite population adjustment is possible [21], but rarely used in practice. If for some factors random sampling is not an appropriate assumption, then fixedeffects or mixed models can be used. Reproducibility methods for fixed and mixed models are discussed elsewhere [19, 22].
Confidence interval performance can be affected by both the study design used and the distribution of the data. If the study design has a limited number of levels of one or both factors, then this can impact interval performance. In practice, it is common that one factor will have a very small number of levels. The distribution of the data is assumed to be normally distributed and a violation of normality can impact coverage. Also, if one variance component is large or small relative to the others, resulting in different values of the ICC, then this can impact coverage as well. Different variance parameters and a range of model violations are studied using simulation and application. These studies lead to relatively simple and straightforward advice on which interval procedure will produce an interval with good performance characteristics. Also presented are cautionary notes about when examined methods will perform poorly.
The history of the development of the methods compared in this paper is briefly reviewed. The Modified Large Sample procedure for the twoway layout without interaction was developed in [23], and is based on earlier work of [24] using exact statistical methods. The Generalized Confidence Interval procedure for the twoway layout without interaction is presented in [25], and is based on a modification of a related method in [26], and the foundational work in [27]. Bayesian methods based on Markov Chain Monte Carlo are described in [28], were previously popularized in [29] and [30], and grow out of earlier work such as [31]. Bayesian intervals can be constructed with a variety of packages in R, such as MCMCglmm, or the popular software based on BUGS (Bayesian inference Using Gibbs Sampling), such as OpenBUGS [32], WinBUGS [33], or JAGS. The frequentist modified large sample (MLS) [24] and generalized confidence interval (GCI) [27] methods can be implemented using SAS version 9.3 VARCOMP procedure, or with the R programs provided with this manuscript.
This paper is organized as follows: Section 2 presents the model, briefly outlines the methods, and also presents the simulation settings. Section 3 presents the results of the Monte Carlo investigations. Section 4 presents real data applications. Section 5 presents discussion of the results. Section 6 presents conclusions. Mathematical details appear in the Additional file 1. Supplemental simulation details appear in Additional file 2.
Methods
The model for the data is
where μ is the overall mean, ${B}_{1},\dots ,{B}_{{b}_{0}}$ are the effects of the patients (or biological samples, etc.), ${L}_{1},\dots ,{L}_{{l}_{0}}$ are the effects of the laboratories (or raters or instruments, etc.), and ${e}_{1,1,1},\dots {e}_{{b}_{0},{l}_{0},{r}_{0}}$ are withinlaboratory (or withinrater, etc.) experimental errors. The standard random effects model assumptions are that ${B}_{b}~\mathit{Normal}\phantom{\rule{0.1em}{0ex}}\left(0,{\sigma}_{b}^{2}\right)\text{,}$ ${L}_{l}~\mathit{Normal}\phantom{\rule{0.1em}{0ex}}\left(0,{\sigma}_{l}^{2}\right)$ and ${e}_{blr}~\mathit{Normal}\phantom{\rule{0.1em}{0ex}}\left(0,{\sigma}_{e}^{2}\right)$ where all random variables are mutually independent. The betweenlaboratory intraclass correlation is $IC{C}_{b}={\sigma}_{b}^{2}/\left({\sigma}_{b}^{2}+{\sigma}_{l}^{2}+{\sigma}_{e}^{2}\right)\text{,}$ and the withinlaboratory intraclass correlation is $IC{C}_{w}={\sigma}_{b}^{2}/\left({\sigma}_{b}^{2}+{\sigma}_{e}^{2}\right)\text{.}$ The analysis of variance for the model is presented in Table 1.
The ${\sigma}_{b}^{2}$ is the variance between biological samples. For measurements to be reproducible, this variance must be large relative to the other sources of variability present. If ${\sigma}_{b}^{2}$ is close to zero, so that the population is homogeneous, then reproducibility will be poor. If ${\sigma}_{b}^{2}$ is larger, and the other sources of variability are controlled adequately, then good reproducibility is possible. Universal heuristics for defining good reproducibility in all cases are not available, but in some cases historical ICC values and/or clinical relevance may help guide appropriate ranges (e.g., [19]).
Comparison measures
Coverage probabilities and average interval widths over a range of plausible true parameter values are compared. The coverage level is set to 95%. These are frequentist measures that answer the critical, concrete questions:

1.
Will an interval constructed in this way have a 95% coverage probability, or will the coverage be lower or higher than 95%?

2.
Will an interval constructed in this way be as narrow as possible, reflecting the strongest possible conclusions that can be drawn from the data?
The coverage probability of a statistical procedure for interval construction is defined as the probability that the constructed interval will contain the parameter. One final note along these lines; the summary statistics presented in Tables 2 and 3 below can be viewed as components of the Bayes risk relative to a true prior (versus the “working prior” used for estimation), a criterion recommended by Samaniego [14] for comparison of frequentist and Bayesian procedures (Additional file 1: Section S4).
Frequentist interval methods
A generalized confidence interval (GCI) is an extension of the traditional concept of a confidence interval. Traditional confidence intervals can be constructed when there is a pivotal quantity with a known distribution free of nuisance parameters. There is no such pivot for ICC _{ b }. The GCI method is based on a generalized pivotal quantity G[25, 27], which is a generalization of the usual pivot [34]. Define F _{ G } as the cumulative distribution function for G. The formula for G is shown in Appendix A; the distribution of G is a function of chisquared random variables. Monte Carlo methods can be used to estimate quantiles of G, say ${\widehat{F}}_{G}^{1}\left(p\right)$ for the pth quantile. The equaltailed (1  α)100% GCI is then,
The modified large sample (MLS) method is an extension of traditional confidence interval methods, which do not work well for the ICC _{ b }. The MLS approach is to construct the traditional asymptotic limits for the ICC _{ b }, and then modify these limits to improve the smallsample performance of the intervals. In particular, the limits are modified so that when all but one of the variance parameters is zero, the interval is exact [24]. The specific approach for the ICC _{ b } is given in Cappelleri and Ting [23]. The general form of the MLS interval is a function of the observed mean squares, and can be written:
where L and U are functions mapping 3dimensional space to onedimensional space, and ${s}_{b}^{2}$, ${s}_{l}^{2}$ and ${s}_{e}^{2}$ are mean squares defined in Table 1. Unlike the GCI approach, the MLS interval is constructed from closed formulae, which appear in Appendix B. The computational cost of constructing an interval using the MLS procedure is smaller than the GCI procedure in general.
Bayesian interval methods
In contrast to the frequentist methods described above, the Bayesian methods available in MCMCglmm, WinBUGS, and similar software, are general and not specifically developed for the ICC _{ b } application. They can be used to construct confidence intervals for variance components, or functions of variance components. The user must specify a prior distribution for the variance parameters, denoted $\pi \left({\sigma}_{b}^{2},{\sigma}_{l}^{2},{\sigma}_{e}^{2}\right)\text{.}$ Then, given the data D, a posterior distribution for the variance parameters is calculated, namely
An explicit density formula will not generally exist. But Markov Chain Monte Carlo methods (e.g., Tierney [30]) can be used to generate a very large sample from this posterior distribution. Then, this sample can be used directly to estimate the posterior distribution of ρ _{ b } = ICC _{ b }, that is, the density f(ρ _{ b }D). The 95% credible interval will contain area 0.95 under the posterior density curve. The highest posterior density (HPD) credible intervals will be the shortest possible credible interval [5](p. 140).
Bayesian software have a variety of noninformative priors from which to choose. As discussed in the Additional file 1, we performed an extensive investigation of all the noninformative priors on variance components that were offered, using as guidance advice in [6] and [35]. In the Results presented in the paper, only the best performing noninformative prior is shown. This turned out to be a uniform prior on the standard deviations, that is, the improper prior:
The same prior was recommended by Gelman [35] (Section 7.1) for obtaining point estimates of individual variance parameters in a oneway analysis of variance, although in that context he warns that this prior can result in miscalibration if the number of groups is small. In particular, the estimate of a variance component for a factor with a small number of levels will tend to be high.
Software
In this paper we developed our own programs for frequentist inference and these programs are available online at http://dobbinuga.com. The software SAS can also be used to construct MLS and GPQ intervals. Bayesian programs for constructing credible sets based on HPD regions include MCMCglmm [36] and winBUGS [33], among others. We use the MCMCglmm package to construct Bayesian HPD credible intervals. Implementation details are provided in the text. The simulation programs we wrote are available from the authors upon request.
Simulation settings
In order to evaluate the different intervals, we looked at the performance metrics discussed above under the model assumption of Equation (1), and under violations of the model assumption. Simulations were run under the settings in Table 4. Parameter values used are discussed in Appendix C.
The value of ICC _{ b } was examined at 0.7 and 0.9. These represent reproducibility levels typically encountered in practice. When ICC _{ b } is 0.7, then the withinlaboratory (or withinrater, etc.) ICC _{ w } must be at least 0.70; we examined ICC _{ w } at 0.71, 0.80, 0.90, and 0.99, representing a wide range of possible values. When ICC _{ b } = 0.9, we examined ICC _{ w } = 0.94.
The designs we examined had b _{0} as 48 or 96, representing moderate sized studies typically feasible for settings where resources are limited. The number of laboratories (or raters, etc.) used was 3 or 6, representing a setting where this number is restricted by logistics or costs.
Results
Under normality
We first examine the different confidence interval methods when the effects and errors are normally distributed, so that the model assumptions are correct. Table 2 shows the results when there are 48 samples and 3 laboratories. The ICC _{ b } = 0.70. Similar results were found for ICC _{ b } = 0.90 (Additional file 3). The coverage probabilities should be 95%. The GPQ method coverages are all within 0.01 of this target. All but one of the MLS coverages are within 0.01 of the target, with one setting being slightly conservative (coverage 0.968 when ICC _{ w } = 0.71). The coverage probabilities of the Bayes intervals are below 95% in all cases, and below 90% in three of the four settings. The average width of each interval type decreases as the ICC _{ w } decreases. In all 4 settings, the widths of the MLS and GPQ intervals are practically identical. But in each setting the Bayes width is wider. This is surprising since wider intervals usually correspond to higher coverage. The excess width of the Bayesian intervals increases as the ICC _{ w } decreases, going from 0.8250.758 = 0.067 (Bayes width minus MLS width) up to 0.6780.377 = 0.301 as ICC _{ w } goes from 0.99 down to 0.71.
Table 2 also shows the results when the number of laboratories is doubled to 6 and the number of samples increases to 96. The coverage probabilities of the GPQ and MLS methods are within 0.01 of the 95% nominal level in all cases. The Bayes methods are within 0.01 of the target in two of the four settings; in the other two settings, the Bayesian interval coverage is anticonservative when ICC _{ w } = 0.99, and conservative when ICC _{ w } = 0.71 (coverages 0.930 and 0.964, respectively). The Bayesian method performance improves with the larger sample size and number of labs. In terms of interval widths, the GPQ and MLS methods are again indistinguishable from one another. The Bayesian intervals are wider than the frequentist intervals in all scenarios.
Under violations of normality
We consider performance under model violations, that is, when neither the effects nor the errors are distributed according to the assumed normal distribution.
We first consider the uniform distribution. Table 3 shows the results with 48 biological replicates and 3 laboratories. The GPQ and MLS methods both tend to have higher than nominal coverage, ranging from 0.976 to 0.992. The Bayesian method coverage is below 0.90 in three of the four settings, and is within 0.01 of the nominal in the other setting. The Bayesian methods only show minor improvement in coverage between the normal case and the uniform distribution case. As for interval width, the GPQ and MLS widths are again practically identical to one another throughout. The Bayesian widths are consistently larger. As was the case with the normal distribution setting, the Bayesian widths tend to both be wider and have lower coverage than the frequentist intervals.
When the number of biological replicates increases to 96 and the number of laboratories increases to 6 in the uniform model setting, the coverage probability for all methods increases (Table 3). In all cases, the coverage probability exceeds the nominal 95% level. The widths of the intervals are similar to those in Table 2 under the corresponding normal model. The Bayesian intervals are consistently wider than the frequentist intervals.
Table 3 also shows the results of comparison under the gamma model. The gamma distribution is intuitively a more serious violation of normality than the uniform distribution. When α = 3, the skewness is 1.15 (normal = 0) and the kurtosis is 5 (normal = 3). This is called the “high skew” model in the table (rightmost two columns). For the high skew setting, all methods have coverage probability below 93% across all scenarios. When ICC _{ w } = 0.71, all methods have coverage below 90%. When the skewness and kurtosis are reduced (Table 3, “low skew” model with α =10 corresponding to skewness is 0.63 (normal = 0) the kurtosis is 3.6 (normal = 3)), the performance of all methods improve. Of note, the coverage probability of the frequentist methods are still below 92% when ICC _{ w } = 0.71. The Bayesian method has lower coverage than the frequentist methods except for one case. Comparing the interval widths, the Bayesian methods consistently have wider intervals than the frequentist methods across all of these settings. The two frequentist methods have very similar mean widths. Overall, while the frequentist methods appear slightly preferable to the Bayesian methods, none is ideal in the presence of skewed data.
Importantly, note that the departure from normality in the high skew gamma data is hard to detect in an actual fitted dataset. For example, we generated 10,000 datasets from the high skew gamma model. We fit the model to each dataset and performed the ShapiroWilk’s normality test for the residuals. The mean pvalue was 0.19, and the median was 0.08, and 55% of the pvalues were above 0.05. For the low skew model, we did the same type of simulation and the mean ShapiroWilk’s residual pvalue was 0.30 with a median of 0.20, and 69% of the pvalues above 0.05.
A mixture normal distribution appeared similar to the normal distribution (Additional file 3).
Real data application: Barzman et al. study
This study involved 24 children (on video) rated by 10 different emergency room staff members. First, we followed the analysis described in Barzman et al. [15]. The analysis of variance table is shown in Table 5. If we represent the variance between the children by ${\sigma}_{b}^{2}\text{,}$ the variance between the staff members rating the videos by ${\sigma}_{l}^{2}\text{,}$ and the error variance by ${\sigma}_{e}^{2}\text{,}$ then the ICC _{ b } is ${\scriptscriptstyle \frac{{\sigma}_{b}^{2}}{{\sigma}_{b}^{2}+{\sigma}_{l}^{2}+{\sigma}_{e}^{2}}}\text{.}$ The estimated ICC _{ b } reported in the paper is 0.9099. The 95% credible interval using noninformative priors reported in the Barzman et al. [15] paper is (0.8416, 0.9526). The 95% GCI that we computed with our program in this case is (0.8510, 0.9569). The Bayesian interval is about 5% wider than the GCI in this case, which is a trivial difference. The Bayesian interval is shifted to the left, relative to the frequentist interval, corresponding to lower estimates of the ICC_{b}. But the shift is very minor, and 96% of the GCI interval overlaps with the Bayesian interval, so that only 4% of the GCI interval does not overlap with the Bayesian interval.
Since we have discovered that the ICC intervals can be sensitive to violations of normality, we analyzed the data to assess normality of the effects and errors. First, we analyzed transformations of the response variable using both the method of Box and Cox [37] and the modulus method [38]. Both methods indicated that the BRACHA scores y should be transformed to approximately z = (y + 0.5)^{0.55}. Supporting the need for transformation, a test for regression curvature had pvalue 0.004, a ShapiroWilk test on the residuals had pvalue 0.001, and a nonconstant variance score test had pvalue 0.001. On looking back at the raw data, it was observed that one child had one extreme outlying score. The child’s scores were (0,0,0,0,0,0,0,0,0.5,3.5). The one 3.5 is an extreme which had the largest Cook’s distance (0.11). Hence, a single rater’s unusual observation may be driving the apparent normality violation. To keep the model balanced, we therefore deleted this child’s data (child 11), resulting in 23 children. Reanalyzing the data from scratch resulted in the same transformation of the BRACHA scores. However, the regression test for curvature had pvalue of 0.43, the ShapiroWilk normality test on the residuals had pvalue 0.51, and the nonconstant variance score test had pvalue 0.19. Thus, there is no longer any evidence of lack of normality. The mean squares were 8.3721, 0.3667, 0.0671 for the reduced dataset. The resulting 95% generalized confidence interval for ICC _{ b } is (0.8423, 0.9542). Although it did not have a large impact on the confidence interval in this case, the process outlined here of carefully assessing normality and revising the analysis as needed, should be part of interval construction. The reason for the minor impact on the interval in this case, compared to the simulations, may be the large number of raters (10 raters).
Real data application: NCI DC reproducibility study
The National Cancer Institute’s Director’s Challenge reproducibility study examined the reproducibility of 22,283 features represented on the Affymetrix U133A Genechip across a collection of frozen patient tissue samples. Unlike other technologies that measure the level of a single gene at a time, microarrays measure the levels of expressions of thousands of human genes simultaneously. The expression measurements are continuous, so that for each individual gene one can assess the reproducibility of the measurements for that particular gene across the different samples by calculating the ICC _{ b }. The result is 22,283 different reproducibility estimates, one for each feature. The NCI DC reproducibility study was one of the largest studies of the reproducibility of microarrays, and thus is of interest in terms of the strength of the conclusions we can draw. To this end, we constructed confidence intervals for all 22,283 features using both the frequentist and Bayesian approaches. For the confidence interval constructions, some samples were omitted to force the design to balance. The result was 4 labs and 11 samples for a total of 44 observations for each feature. Data were normalized as in Dobbin et al. [16] except that dChip [39] was used instead of MAS 5.0 (http://www.affymetrix.com/support/technical/whitepapers.affx). We first applied both Bayesian and frequentist methods to construct confidence intervals for each feature. Results are shown in Table 6. For features with reasonably high reproducibility (ICC _{ b } > 0.52, top 2 quartiles of features) the interval widths for the GCI’s had lower mean and median than the corresponding Bayesian interval widths.
In order to estimate the coverage probabilities of the DC reproducibility study intervals, we considered the 44 samples examined as a random sample from a finite population which consisted of all 69 tumor microarrays in the original dataset. For this “population” of 69 samples, the true ICC _{ b } values were calculated from the unbalanced data, using the expected mean squares presented in [16]; we can call these values pseudoparameters, to distinguish them from the true population parameters, which are unknown. The proportion of times the pseudoparameters were contained in each interval was calculated; we term this pseudocoverage. Note that pseudocoverage is equal to the true coverage for the finite population of 69 samples. As shown in Table 6, for features with ICC _{ b } > 0.72, representing the quartile with the highest reproducibility (highest pseudoparameter values), the pseudocoverage of the frequentist and Bayesian methods are similar (96.5% and 96.7%, respectively), but the GCI interval width mean is much smaller than the NIB interval width mean (0.439 versus 0.520, or 16% narrower GCI). These width differences are similar to those observed in the simulations. Interestingly, Table 6 also reveals that the NIB coverage breaks down (with coverage only 85.9%) when ICC _{ b } ≤ 0.23, while the GCI maintains high coverage (with coverage 99.2%) in this setting. This observation suggests that the Bayesian methods may undercover when the point estimate of the ICC _{ b } is small.
Because of the importance of normality of the data, we reevaluated the DC reproducibility study more closely with this in mind. First we performed the method of Box and Cox [37] for the linear model of Equation 1 for each gene to assess the optimal normalizing transformation. The distribution of the BoxCox lambda values is shown in the Additional file 1. There is some variation in the estimated optimal lambda values. They are centered near zero. Zero corresponds to the log transformation used in the previous analysis for all features. However, since normality is so important for ICC interval validity, we reanalyzed these data using the genespecific BoxCox transformations. We ran the Tukey interaction tests on all features, and all had pvalues over 0.05, indicating no evidence of interaction effects. The resulting Shapiro Wilk test pvalue distribution had mean of 0.44, and approximately 12% of features had a pvalue below 0.05. There appeared to be no patterns in the Shapiro Wilk pvalues that would be useful in identifying the normally distributed genes. Our conclusion is that the confidence intervals for most features should be valid, but that individual feature CI’s should be interpreted in the context of the corresponding Shapiro Wilk test pvalue.
Discussion
Two questions arise from these observations. (1) Why are the noninformative Bayesian methods performing poorly relative to the frequentist methods in some cases? (2) Why are both methods not robust to skewness and kurtosis?
For question 1, these results naturally led us to further investigate the Bayesian credible interval methodologies. When the Bayesian and frequentist intervals differed, the midpoints of the Bayesian intervals tended to be further from the true ICC _{ b } than the midpoints of the frequentist intervals. The result we saw was wider intervals with poorer coverage. But why did this happen? Detailed discussion appears in the Additional file 1. In summary, we discovered potential reasons for the poor performance of the noninformative Bayesian priors. One issue is that noninformative priors on variance components do not imply noninformative distributions on the ICC. In fact, we derive these distributions in the Additional file 1 and show that they can be nearly point masses at 0 and 1. The one distribution where this is not the case is the one that works best in practice, namely, the uniform distribution on the standard deviation. But even this prior distribution on the ICC _{ b } has most of its mass towards the edges of the unit interval (Additional file 1: Figure S2). That being said, this fact probably does not entirely explain the poor performance. The second potential issue is that the Bayesian methods are not based on an underlying exact interval construction method, like the GCI and the MLS methods. Put another way, the modified large sample method uses a “modified” version of the usual large sample method, whereas the Bayesian methods use an “unmodified” Bayesian computation. Indeed, since the GCI method is closely related to the nonparametric Bayesian method [34], it may be that nonparametric Bayesian methods can be used to adjust the Bayesian parametric intervals.
The lack of robustness to skewness and kurtosis may appear surprising given that analysis of variance in general is robust to these. However, since we are constructing a confidence interval for a ratio of variance components, this means that estimation becomes more unstable. For example, the MLS interval equation involves fourth order moments. In general, the higher order a moment is, the more difficult it is to estimate. The GCI method, while not relying explicitly on fourth order moments, relies on the assumption that the second order moments are chisquared in order to estimate quantiles of the generalized pivot, which is conceptually quite similar to calculating a fourth order moment.
Conclusions
In this paper several methods for constructing intervals for the intraclass correlation coefficient were examined. Coverage probabilities and confidence interval widths were reported for the commonly encountered twoway, crossedeffects linear model without interaction. The Modified Large Sample (MLS), Generalized Confidence Interval (GCI) and noninformative Bayesian interval methods were evaluated. When model assumptions are true, we showed that the MLS and GCI methods perform well under a wide range of settings. Bayesian software with noninformative priors on variance components did not perform as well in most settings, often failing to achieve desired coverage and at the same time, counterintuitively, also resulting in wider average interval widths. Under model violations, it was shown that the methods performed similarly when there was small skewness and kurtosis. However, neither the frequentist nor the Bayesian methods were robust to hardtodetect skewness and kurtosis when the number of levels of one factor is small. The methods were applied to two previously published reproducibility studies and new insights were gained. Future directions to improve the Bayesian approaches were suggested. A decision tree summarizing this paper’s findings is presented in Figure 1.
A number of commonly used noninformative Bayesian priors for variance components were studied. Results are in the Additional file 1. Bayesian priors for the intraclass correlation coefficient were derived mathematically for the inverse gamma and uniform (on standard deviations) priors. The commonly used inverse gamma prior on individual variance components resulted in an ICC prior very close to the extreme prior of two point masses: one at 0 and the other at 1. The inverse gamma (IG) prior was also found to lack scale invariance. Specifically, simply rescaling the data can drastically change the resulting (IG priorbased) interval for intraclass correlation coefficient (either ICC_{b} or ICC_{w}). Moreover, this change is a function of the userdefined choice of noninformative prior parameter, so that IG(0.001,0.001) produces very different intervals than IG(0.01,0.01); a similar result was reported by Gelman [35] in the context of making inference about individual variance components. The uniform prior used in this paper does not result in a nearly degenerate prior for the ICC, is not affected by scale changes in the data, and is not sensitive to userdefined parameter choices (trivially, since there are none).
A question outside the scope of this paper is whether it is possible to develop Bayesian methods that would have performance comparable to the frequentist methods across all scenarios in terms of mean interval width and coverage probability. It is possible that at some point in the future such a method will be developed. One possibility mentioned in the discussion is adapting nonparametric Bayesian methods for random effects models to this setting (for discussion, see [40]). Another possibility, following a suggestion in Gelman [35], is to have a relatively minor modification of the prior and place uniform distributions on individual variance components with finite support, so that σ ~ Uniform(0, k) for some k > 0; a different constant k could be used for each variance component, and these would need to be chosen based on prior knowledge or on the data (e.g., empirical Bayes). Indeed, the utility of Bayesian methods in medical contexts where prior or expert knowledge is available is widely recognized. Further research in this direction seems needed.
In modeling laboratory reproducibility, we have assumed that the effect of a laboratory is represented by a tendency to score higher or lower than other laboratories across biological samples assayed. But laboratory effects may be represented in other ways. For example, it may be that some laboratories have higher variance in their measurements, but no systematic difference across individuals. Such a setting could be represented by a variance components model that allowed each lab to have its own withinlaboratory measurement error variance (that is, in Equation (1), permit ${\sigma}_{e}^{2}$ to vary by laboratory). This would represent that lab’s ability to obtain replicable measurements in repeated assays. The null hypothesis that all withinlab variances are equal could be tested against the general alternative. Alternatively, the CCC could be used [18], as suggested by a referee. As another example, an interaction between labs and samples could be introduced into Equation 1 to represent labtolab variation in ability to reproducibly measure individual samples, and indeed we have used a Tukey test to assess such interaction in the first application.We used simulation to investigate whether we could develop posthoc rules which could be used to select an interval construction method. Unlike Figure 1, these rules would be based on the values of the observed mean squares, in addition to the study design and normality assumptions. We were unable to come up with helpful rules that could be used in practice. But these results (not presented) suggested that the Bayesian methods tend to underperform more often when the laboratory variance estimate is large relative to the biological variance, and that the frequentist tend to underperform when the estimated biological variance is very large relative to the estimated laboratory variance. But we discourage investigators from using these broad observations in selecting a methodology, and recommend instead Figure 1.
The number 8 in Figure 1 as the cutoff number for how many levels are enough for the noninformative Bayesian method performance to match the frequentist is a best guess, and not a hard number based on theoretical results. However, we did run extended simulations with 416 laboratories, and these results are presented in the Additional files 4 and 5. With 8 levels (labs) it seems that one could safely conclude that the noninformative Bayesian, MLS and GCI would all be very similar and adequate under the normal model assumptions. The Bayesian coverages are similar to the frequentist for even 46 levels, but the Bayesian interval widths are noticeably wider.
Appendix A: formula for the generalized pivotal quantity
where c _{2} = (b _{0}  1)/(l _{0} r _{0}), c _{3} = (b _{0} l _{0} r _{0}  b _{0}  l _{0} + 1)/(l _{0} r _{0}), c _{1} = (l _{0}  1)/(b _{0} r _{0}) and c _{4} = c _{3}(b _{0} l _{0} r _{0}  b _{0}  l _{0} + 1)/b _{0}. Here ${W}_{1}~{\chi}_{\left({l}_{0}1\right)}^{2}$ ${W}_{2}~{\chi}_{\left({b}_{0}1\right)}^{2}$ and ${W}_{3}~{\chi}_{\left({b}_{0}{l}_{0}{r}_{0}{b}_{0}{l}_{0}+1\right)}^{2}$ are mutually independent given the observed mean squares. Generating a large number of (W _{1}, W _{2}, W _{3}) triples (such as 100,000) by Monte Carlo, the generalized confidence interval is formed from the quantile function ${\widehat{F}}_{G}^{1}\text{.}$
Appendix B: modified large sample formula
The formula for the interval (L,U) is
where the constants G _{2}, F _{5}, F _{4}, H _{2}, F _{6}, F _{3} are quantiles of F distributions as defined in the Additional file 1 and [25].
Appendix C: simulation parameter settings
Additional file 1: Table S1 shows the complete list of simulation settings used. Simulation results not presented in the paper appear in the Additional file 3. For the simulations involving the normal distribution, data were generated as given in Equation 1 above.
The robustness of intervals to violations of the normality assumption was evaluated by generating effects and errors from uniform, mixture normal, and gamma distributions. Parameters settings were calculated to make the variances of the simulated biological effects, lab effects and measurement error exactly the same as in the normal simulations.
For a random variable X with the uniform distribution on the interval [A,A], the variance is Var(X) = A ^{2}/3. This leads to the formulas
If the distribution of each effect in Equation (1) is uniform, instead of normal, then the marginal distribution of the responses, Y_{blr}, are sums of uniform random variables. The marginal density is derived in Additional file 1: Section S5 and plotted in the Additional file 1.
A random variable X with a normal mixture distribution with means ± μ and standard deviations μ/3, and weights 0.5, will be bimodal. We can write the mixture normal as a hierarchical model with c ~ Bernoulli(0.5), and
Then E[X] = 0 and Var(X) = μ^{2}*(10/9).
The resulting equations are ${\mu}_{b}=\sqrt{9{\sigma}_{b}^{2}/10},{\mu}_{l}=\sqrt{9{\sigma}_{l}^{2}/10},{\mu}_{e}=\sqrt{9{\sigma}_{e}^{2}/10}\text{.}$ The marginal densities for Y_{blr} are also mixture normal (see Additional file 1: Section S5), and are shown in the Additional file 1.
Define Gamma(α,β) by the density function $f\left(x\right)=\frac{1}{\Gamma \left(\alpha \right){\beta}^{\alpha}}{x}^{\alpha 1}{e}^{x/\beta}\text{.}$ Effect sizes and errors are generated by the following steps:
Note that w can be viewed as a meanshifted version of ${w}_{0}\left(\sigma /\sqrt{\alpha}\right)\text{,}$ and since central moments are translationinvariant, the central moments of w are the same as the central moments of a Gamma(α,σ/ α^{1/2}). As a result, E[w] = 0, Var(w) = σ^{2}, skewness(w) = $2/\sqrt{\alpha}$ and kurtosis(w) = 3 + 6/α [41] (p. 31). We keep β = 1. We let α = 1, 3, 10, 40. The marginal densities for Y _{ blr } are discussed in Additional file 1: Section S5 and shown in the Additional file 1.
References
 1.
Bartko J: Intraclass correlation coefficient as a measure of reliability. Psychol Rep. 1966, 19: 311. 10.2466/pr0.1966.19.1.3.
 2.
Donner A: The use of correlation and regression in the analysis of family resemblance. Am J Epidemiol. 1979, 110 (3): 335342.
 3.
Wolak M, Fairbairn D, Paulsen Y: Guidelines for estimating repeatability. Methods Ecol Evol. 2012, 3 (1): 129137. 10.1111/j.2041210X.2011.00125.x.
 4.
Gisev N, Bell J, Chen T: Interrate agreement and interrater reliability: key concepts, approaches, and applications. Res Soc Admin Pharm. 2013, 9 (3): 330338. 10.1016/j.sapharm.2012.04.004.
 5.
Berger J: Statistical Decision Theory and Bayesian Analysis. 1985, New York: SpringerVerlag, 2
 6.
Carlin B, Louis T: Bayesian Methods for Data Analysis. 2009, Boca Raton, FL: Chapman and Hall, 3
 7.
Little R: Calibrated Bayes: a Bayes/frequentist roadmap. Am Stat. 2006, 60: 213223. 10.1198/000313006X117837.
 8.
Rubin D: Bayesianly justifiable and relevant frequency calculations for applied statisticians. Ann Stat. 1984, 12: 11511172. 10.1214/aos/1176346785.
 9.
Box G: Sampling and Bayes inference in scientific modeling and robustness. J Royal Stat Soc A. 1980, 143: 383430. 10.2307/2982063.
 10.
Browne W, Draper D: A comparison of Bayesian and likelihoodbased methods for fitting multilevel models. Bayesian Anal. 2006, 1 (3): 473514.
 11.
Yin G: Bayesian generalized method of moments. Bayesian Anal. 2009, 4: 191208. 10.1214/09BA407.
 12.
Leonard D: Estimating a bivariate linear relationship. Bayesian Anal. 2011, 6: 727754.
 13.
Bingham M, Vardeman S, Nordman D: Bayes onesample and oneway random effects analyses for 3D orientations with application to materials science. Bayesian Anal. 2009, 4: 607630. 10.1214/09BA423.
 14.
Samaniego F: A Comparison of the Bayesian and Frequentist Approaches to Estimation. 2010, New York: Springer
 15.
Barzman D, Mossman D, Sonnier L, Sorter M: Brief rating of aggression by children and adolescents (BRACHA): a reliability study. J Am Acad Psychiatry Law. 2012, 40: 374382.
 16.
Dobbin K, Beer D, Meyerson M, Yeatman T, Gerald W, Jacobson J, Conley B, Buetow K, Heiskanen M, Simon RM, Minna JD, Girard L, Misek DE, Taylor JM, Hanash S, Naoki K, Hayes DN, LaddAcosta C, Enkemann SA, Viale A, Giordano TJ: Interlaboratory comparability study of cancer gene expression analysis using oligonucleotide microarrays. Clin Cancer Res. 2005, 11: 565572.
 17.
McShane LM, Aamodt R, CordonCardo C, Cote R, Faraggi D, Fradet Y, Grossman HB, Peng A, Taube SE, Waldman FM: Reproducibility of p53 immunohistochemistry in bladder tumors. National cancer institute, bladder tumor marker network. Clin Cancer Res. 2000, 6 (5): 18541864.
 18.
Chen C, Barnhart HX: Comparison of ICC and CCC for assessing agreement for data without and with replications. Comput Stat Data Anal. 2008, 53: 554564. 10.1016/j.csda.2008.09.026.
 19.
Lin LI, Hedayat AS, Wu WM: Statistical Tools for Measuring Agreement. 2012, New York: Springer
 20.
Montgomery D: Design and Analysis of Experiments. 2013, New York: Wiley, 8
 21.
Searle S, Fawcett R: Expected mean squares in variance components models having finite populations. Biometrics. 1970, 26 (2): 243254. 10.2307/2529072.
 22.
Lin LI, Hedayat AS, Wu WM: A unified approach for assessing agreement for continuous and categorical data. Biopharm Stat. 2007, 17 (4): 629652. 10.1080/10543400701376498.
 23.
Cappelleri J, Ting N: A modified largesample approach to approximate interval estimation for a particular class of intraclass correlation coefficient. Stat Med. 2003, 22: 18611877. 10.1002/sim.1402.
 24.
Graybill F, Wang C: Confidence intervals for nonnegative linear combinations of variances. J Am Stat Assoc. 1980, 75: 869873. 10.1080/01621459.1980.10477565.
 25.
Burdick R, Borror C, Montgomery D: Design and Analysis of Gauge R&R Studies: Making Decisions with Confidence Intervals in Random and Mixed ANOVA Models. 2005, Alexandria, Virginia: ASA and SIAM
 26.
Arteaga C, Jeyaratnam S, Graybill F: Confidence intervals for proportions of total variance in the twoway cross component of variance model. Commun Stat Theor Methods. 1982, 11: 16431658. 10.1080/03610928208828338.
 27.
Weerahandi S: Generalized confidence intervals. J Am Stat Assoc. 1993, 88 (423): 899905. 10.1080/01621459.1993.10476355.
 28.
Robert C, Casella G: Monte Carlo Statistical Methods. 2010, New York: Springer
 29.
Gelfand A, Smith A: Sampling based approaches to calculating marginal densities. J Am Stat Assoc. 1990, 85: 398409. 10.1080/01621459.1990.10476213.
 30.
Tierney L: Markov chains for exploring posterior distributions. Ann Stat. 1991, 22: 17011762.
 31.
Metropolis N, Rosenbluth A, Rosenbluth M, Teller A, Teller E: Equations of state calculations by fast computing machines. J Chem Phys. 1953, 21: 10871092. 10.1063/1.1699114.
 32.
Thomas A, O’Hara B, Ligges U, Sturtz S: Making BUGS open. R News. 2006, 6: 1217.
 33.
Lunn D, Thomas A, Best N: WinBUGS – a Bayesian modeling framework: concepts, structure and extensibility. Stat Comput. 2000, 10: 325337. 10.1023/A:1008929526011.
 34.
Weerahandi S: Exact Statistical Methods for Data Analysis. 2003, New York: SpringerVerlag
 35.
Gelman A: Prior distributions for variance parameters in hierarchical models. Bayesian Anal. 2006, 1 (3): 515533.
 36.
Hadfield J: MCMC methods for multiresponse generalized linear mixed models: the MCMCglmm R package. J Stat Software. 2010, 33 (2): 122.
 37.
Box G, Cox D: An analysis of transformations (with discussion). J Royal Stat Soc B. 1964, 26: 211252.
 38.
John J, Draper N: An alternative family of transformations. Appl Stat. 1980, 29: 190197. 10.2307/2986305.
 39.
Li C, Wing WH: Modelbased analysis of oligonucleotide arrays: expression index computation and outlier detection. Proc Natl Acad Sci U S A. 2001, 98 (1): 3136. 10.1073/pnas.98.1.31.
 40.
Muller P, Quintana F: Nonparametric Bayesian data analysis. Statistical Science. 2004, 19 (1): 95110. 10.1214/088342304000000017.
 41.
Lehman E, Cassella G: Theory of Point Estimation. 1998, New York: Springer
Prepublication history
The prepublication history for this paper can be accessed here:http://www.biomedcentral.com/14712288/14/121/prepub
Acknowledgments
Ionan and Dobbin were supported in part by a grant from the Georgia Research Alliance’s Distinguished Cancer Scholars Program.
Author information
Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ contributions
ACI wrote the computer simulation programs, carried out the simulations, and participated in the data analysis. MCP wrote the MLS program. KKD wrote the GCI program, derived the Bayesian priors, participated in the data analysis, and wrote the first draft. All authors participated in conceptual development and writing. All authors read and approved the final manuscript.
Electronic supplementary material
12874_2014_1133_MOESM1_ESM.pdf
Additional file 1: Supplement includes additional discussion, simulations, data analysis details, figures and tables.(PDF 855 KB)
12874_2014_1133_MOESM2_ESM.xls
Additional file 2: Supplement presents the mean and standard deviation of the point estimates of the ICCb for different models and designs presented in the main paper.(XLS 22 KB)
12874_2014_1133_MOESM3_ESM.xls
Additional file 3: Supplement presents complete tables of the core simulations simulations from which the tables in the paper are a subset.(XLS 62 KB)
12874_2014_1133_MOESM4_ESM.xls
Additional file 4: Supplement is a table of results for designs with 8, 10, 12, 14 and 16 factor levels for laboratories.(XLS 31 KB)
12874_2014_1133_MOESM5_ESM.xls
Additional file 5: Supplement is a table of results for designs with 4, 5, 6 and 7 factor levels for laboratories.(XLS 26 KB)
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made.
The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
To view a copy of this licence, visit https://creativecommons.org/licenses/by/4.0/.
The Creative Commons Public Domain Dedication waiver (https://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Ionan, A.C., Polley, MY.C., McShane, L.M. et al. Comparison of confidence interval methods for an intraclass correlation coefficient (ICC). BMC Med Res Methodol 14, 121 (2014). https://doi.org/10.1186/1471228814121
Received:
Accepted:
Published:
Keywords
 Confidence interval
 Credible interval
 Generalized confidence interval
 Intraclass correlation coefficient
 Modified large sample