Next Article in Journal
On the Embed and Project Algorithm for the Graph Bandwidth Problem
Next Article in Special Issue
A Bayesian-Deep Learning Model for Estimating COVID-19 Evolution in Spain
Previous Article in Journal
Wind Power Extraction Optimization by Dynamic Gain Scheduling Approximation Based on Non-Linear Functions for a WECS Based on a PMSG
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Simultaneous Comparison of Sensitivities and Specificities of Two Diagnostic Tests Adjusting for Discrete Covariates

by
José Antonio Roldán-Nofuentes
Department of Statistics, School of Medicine, University of Granada, 18016 Granada, Spain
Mathematics 2021, 9(17), 2029; https://doi.org/10.3390/math9172029
Submission received: 28 July 2021 / Revised: 19 August 2021 / Accepted: 20 August 2021 / Published: 24 August 2021
(This article belongs to the Special Issue Advances in Computational Statistics and Applications)

Abstract

:
Adjusting for covariates is important in the study of the performance of diagnostic tests. In this manuscript, the simultaneous comparison of the sensitivities and specificities of two binary diagnostic tests is studied when discrete covariates are observed in all of the individuals in the sample. Four methods are presented to simultaneously compare the two sensitivities and the two specificities: a global hypothesis test and three other methods based on individual comparisons. The maximum likelihood method was applied to adjust the overall estimators of sensitivities and specificities. Simulation experiments were carried out to study the asymptotic behaviors of the four proposed methods when the covariate is binary, giving general rules of application. The results were applied to a real example.

1. Introduction

A diagnostic test is a medical test that is applied to a patient to determine the presence or absence of a certain disease. When the result of a diagnostic test may be either positive or negative, the diagnostic test is called a binary diagnostic test (BDT). The exercise test for the diagnosis of coronary artery disease is an example of a BDT. The fundamental parameters to measure the effectiveness of a BDT are its sensitivity and the specificity. The sensitivity (Se) is the probability that the BDT result is positive when the individual has the disease, and the specificity (Sp) is the probability that the BDT result is negative when the individual does not have the disease. Both parameters depend only on the intrinsic properties (physical, biological, chemical, etc.) of the BDT. The effectiveness of a BDT is assessed in relation to a gold standard. A gold standard (GS) is a medical test used to objectively diagnose the presence (or absence) of a certain disease. Therefore, a GS is an error-free test. An angiography for diagnosis of coronary artery disease is an example of a GS.
The comparison of the sensitivities (specificities) of two BDTs is an important topic in the study of statistical methods for diagnosis in medicine. The most common type of sample design to compare these parameters is the paired design. The paired design consists of applying the two BDTs to a random sample of n patients whose disease state is known by applying a GS. When the sensitivities and specificities of two BDTs are compared under a paired design, the problem is traditionally solved by conditioning on the disease status and applying a comparison test of two paired binomial proportions (e.g., the McNemar test). Therefore, the comparison of the two sensitivities is made conditioning on the diseased individuals and solving the test H 0 : S e 1 = S e 2 vs. H 1 : S e 1 S e 2 applying the McNemar test to an α error [1]. Similarly, the comparison of the two specificities is made conditioning on the non-diseased individuals and solving the test H 0 : S p 1 = S p 2 vs. H 1 : S p 1 S p 2 by applying the same method. Therefore, sensitivities and specificities are compared independently, by solving the hypothesis tests H 0 : S e 1 = S e 2 and H 0 : S p 1 = S p 2 , to the same α error. Roldán-Nofuentes and Sidaty-Regad [2] studied the simultaneous comparison of sensitivities and specificities, and showed that comparing the two sensitivities and the two specificities independently can give rise to global type I errors that greatly exceed the nominal error (and therefore can lead to wrong conclusions).
In clinical practice, when evaluating the effectiveness of a BDT, covariates are frequently observed in all patients in the sample. When the covariate is related to the disease and to the diagnostic test, it is necessary to adjust for covariates [3]. For example, in the diagnosis of coronary disease, smoking is a risk factor for the disease. Because smoking speeds up the heart rate, constricts the main arteries, and can cause disturbances in the rhythm of the heartbeat, if an exercise test is used, adjustment for smoking is needed to properly describe the diagnostic effectiveness of the exercise test. Another topical example is the diagnosis of COVID-19. Lahner et al. [4] studied the diagnosis of this disease in health workers using IgG serology as a diagnostic test (among other tests). Lahner et al. showed that the diagnostic performance of IgG serology is associated with the number of days elapsed (at least 14 or 20 days) after the nasopharyngeal swab. Therefore, adjusting for elapsed days is necessary to evaluate the diagnostic effectiveness of IgG serology. This problem also arises when comparing the effectiveness of two BDTs [3]. Therefore, when two BDTs are compared, it is necessary to eliminate the effect that the covariates have on the estimation of sensitivities and specificities, and on the comparison of these parameters.
This manuscript is an extension of the study by Roldán-Nofuentes and Sidaty-Regad [2], to the situation in which a discrete covariate is observed in all patients in the sample. Therefore, a global hypothesis test was studied to simultaneously compare the sensitivities and specificities of two BDTs when discrete covariates are observed in all patients in the sample. Other alternatives to the global hypothesis test were also studied. Adjusting for covariates in this situation eliminates the effect of covariates in the simultaneous comparison of the two sensitivities and specificities. This problem is approached by applying the maximum likelihood method to the estimation of the parameters and the delta method to the estimation of the variances-covariances. This manuscript is structured as follows. In Section 2, the model to simultaneously compare the sensitivities and specificities of two BDTs in the presence of a discrete covariate is described, in addition to other alternative methods. In Section 3, simulation experiments are carried out to study the sizes and the powers of the methods proposed in Section 2. In Section 4, a function written in R [5] is presented that allows the problem studied in this manuscript to be solved. In Section 5, the results are applied to the diagnosis of coronary heart disease, and in Section 6 the results are discussed.

2. Global Hypothesis Test

The objective is to study the simultaneous comparison of overall sensitivities and overall specificities of the two BDTs, i.e., to solve the global hypothesis test:
H 0 : S e 1 = S e 2   and   S p 1 = S p 2   vs .   H 1 : S e 1 S e 2   and / or   S p 1 S p 2
when the two BDTs are applied to all individuals in a sample with a size of n and a discrete covariate is observed in all of them. Therefore, let us consider two BDTs, Test 1 and Test 2, that are applied to all n individuals in a random sample. The disease state (disease present or disease absent) of all of the individuals in the sample is known by applying a GS. Let T h be the binary random variable that models the result of the hth BDT: T h = 1 when the result of the BDT is positive and T h = 0 when it is negative. Let the binary random variable D that models the result of the GS: D = 1 when the individual is diseased and D = 0 when the individual is non-diseased. Moreover, let us consider that for all of the n individuals of the sample we observe a vector X = X 1 , X 2 , , X M of a discrete covariate, where X m is each of the different values or patterns that the covariate can take with m = 1 , , M . Let us suppose that the number of individuals that verify X = X m is n m , and therefore n = m = 1 M n m . Table 1 shows the observed frequencies for X = X m , where n i j m = s i j m + r i j m .
The sample of n individuals is the product of a multinomial distribution whose probabilities are:
τ m i j = P X = X m , D = 1 , T 1 = i , T 2 = j
and:
υ m i j = P X = X m , D = 0 , T 1 = i , T 2 = j ,
with:
m = 1 M i , j = 0 1 τ m i j + m = 1 M i , j = 0 1 υ m i j = 1 .
From the multinomial distribution sized n and probabilities τ m i j and υ m i j , 8 M 1 parameters can be estimated, because in total there are 8 M probabilities that are subject to m = 1 M i , j = 0 1 τ m i j + m = 1 M i , j = 0 1 υ m i j = 1 (i.e., υ M 11 = 1 m = 1 M i , j = 0 1 τ m i j m = 1 M i , j = 0 1 υ m i j m , i , j M , 1 , 1 ). If the covariate is binary, then 15 parameters can be estimated.
Let ψ m = P X = X m be the probability that an individual X = X m and ψ = ψ 1 , , ψ M T , with m = 1 M ψ m = 1 . Let ϕ i j m and φ i j m be the probabilities defined as
ϕ i j m = P D = 1 , T 1 = i , T 2 = j X = X m   and   φ i j m = P D = 0 , T 1 = i , T 2 = j X = X m ,
then probabilities τ m i j and υ m i j can be written as:
τ m i j = ψ m ϕ i j m   and   υ m i j = ψ m φ i j m .
The sample of n individuals can be seen as a sample of a mixture of M multinomial independent 2 × 4 tables. By conditioning on the mth table, i.e., conditioning on X = X m , and applying the conditional dependence model of Berry et al. [6], it holds that:
ϕ i j m = P D = 1 , T 1 = i , T 2 = j X = X m = P D = 1 X = x m P T 1 = i X = X m , D = 1 × P T 2 = j X = X m , D = 1 + δ i j ε 1 m = p m S e 1 m i 1 S e 1 m 1 i S e 2 m j 1 S e 2 m 1 j + δ i j S e 1 m S e 2 m α 1 m 1
and:
φ i j m = P D = 0 , T 1 = i , T 2 = j X = X m = P D = 0 X = x m P T 1 = i X = X m , D = 0 × P T 2 = j X = X m , D = 0 + δ i j ε 0 m = q m S p 1 m 1 i 1 S p 1 m i S p 2 m 1 j 1 S p 2 m j + δ i j 1 S p 1 m 1 S p 2 m α 0 m 1 ,
where p m = P D = 1 X = X m = i , j = 0 1 ϕ i j m is the disease prevalence for the individuals with X = X m , q m = 1 p m , δ i j = 1 if i = j and δ i j = 1 if i j , and the parameter α 1 m α 0 m is the covariance [6] between both BDTs when D = 1 D = 0 and X = X m . The covariances verify [6] that 1 α 1 m 1 / max S e 1 m , S e 2 m and 1 α 0 m 1 / max 1 S p 1 m , 1 S p 2 m . If α 1 m = α 0 m = 1 , then both BDTs are conditionally independent on the disease when X = X m , an assumption that is not realistic, so in practice α 1 m > 1 and/or α 0 m > 1 .
For the mth table (i.e., X = X m ), let ω m = ϕ 11 m , ϕ 10 m , ϕ 01 m , ϕ 00 m , φ 11 m , φ 10 m , φ 01 m , φ 00 m T be the vector whose components are the probabilities ϕ i j m and φ i j m . Therefore, conditioning on X = X m , ω m is the probability vector of a multinomial distribution. Let ω = ω 1 , , ω M T be the vector whose components are ω m . In X = X m , the sensitivities of the BDTs are:
S e 1 m = P T 1 = 1 D = 1 , X = X m   and   S e 2 m = P T 2 = 1 D = 1 , X = X m ,
and the specificities are:
S p 1 m = P T 1 = 0 D = 0 , X = X m   and   S p 2 m = P T 2 = 0 D = 0 , X = X m .
Let p = m = 1 M ψ m p m = m = 1 M ψ m i , j = 0 1 ϕ i j m be the overall prevalence and q = 1 p = m = 1 M ψ m q m = m = 1 M ψ m i , j = 0 1 φ i j m . The overall sensitivity and the overall specificity of each BDT are:
S e h = P T h = 1 D = 1 = m = 1 M ψ m p m S e h m p   and   S p h = P T h = 0 D = 0 = m = 1 M ψ m q m S p h m q ,
With h = 1 , 2 , and where:
S e 1 m = ϕ 11 m + ϕ 10 m p m   and   S p 1 m = φ 01 m + φ 00 m q m
are the sensitivity and specificity of Test 1 in X = X m , and:
S e 2 m = ϕ 11 m + ϕ 01 m p m   and   S p 2 m = φ 10 m + φ 00 m q m
are the sensitivity and specificity of Test 2 in X = X m . The overall sensitivity and the overall specificity of each BDT are written in terms of ψ m , ϕ i j m and φ i j m as:
S e 1 = m = 1 M ψ m ϕ 11 m + ϕ 10 m m = 1 M ψ m i , j = 0 1 ϕ i j m   and   S p 1 = m = 1 M ψ m φ 00 m + φ 01 m m = 1 M ψ m i , j = 0 1 φ i j m
for Test 1, and:
S e 2 = m = 1 M ψ m ϕ 11 m + ϕ 01 m m = 1 M ψ m i , j = 0 1 ϕ i j m   and   S p 2 = m = 1 M ψ m φ 00 m + φ 10 m m = 1 M ψ m i , j = 0 1 φ i j m
for Test 2.
The parameters of the model are estimated by applying the maximum likelihood method. If the covariate has M patterns then 8 M 1 parameters must be estimated: 2 M sensitivities, 2 M specificities, 2 M covariances, M prevalences and M 1 probabilities ψ m (since m = 1 M ψ m = 1 ). If the covariate is binary ( M = 2 ) then 15 parameters must be estimated: four sensitivities ( S e 11 , S e 21 , S e 12 and S e 22 ), four specificities ( S p 11 , S p 21 , S p 12 and S p 22 ), four covariances ( α 11 , α 01 , α 12 and α 02 ), two prevalences ( p 1 and p 2 ) and the probability ψ 1 (since ψ 2 = 1 ψ 1 ). Therefore, all the parameters of the model can be estimated from the sample of n individuals, since the number of parameters that must be estimated is equal to the number of parameters that can be estimated from the initial multinomial distribution. The log-likelihood function based on n individuals is:
l ψ , ω = i , j = 0 1 m = 1 M x i j m log ψ m ϕ i j m + i , j = 0 1 m = 1 M y i j m log ψ m φ i j m .
This function can be written as:
l ψ , ω = l 1 ψ + l 2 ω ,
where:
l 1 ψ = i , j = 0 1 m = 1 M n i j m log ψ m
and:
l 2 ω = i , j = 0 1 m = 1 M x i j m log ϕ i j m + i , j = 0 1 m = 1 M y i j m log φ i j m .
Maximum likelihood estimators of ψ and ω are easily obtained from Functions (5) and (6), i.e.,
ψ ^ m = n m n ,   ϕ ^ i j m = s i j m n m   and   φ ^ i j m = r i j m n m .
The estimators of sensitivities and specificities in X = X m , the estimator of overall prevalence, and the estimators of overall sensitivities and of overall specificities are easily obtained by substituting the parameters for their estimators into their respective equations. The Fisher information matrix of function (4) is:
I ψ , ω = Diag I 1 , I 2 ,
where I 1 = I ψ and I 2 = I ω are the Fisher information matrixes of Functions (5) and (6) respectively, verifying that:
I 1 ψ , ω = Diag I 1 1 , I 2 1
and, therefore, the covariances between ψ and ω are zero. Because vector ψ is the probability vector of a multinomial distribution, the variance-covariance matrix of ψ ^ is:
ψ ^ = I 1 1 = D i a g ψ ψ ψ T / n .
The variance-covariance matrix of ω ^ m is:
ω ^ m = D i a g ω m ω m ω m T / n m
and the variance-covariance matrix of ω ^ is:
ω ^ = I 2 1 = D i a g ω ^ 1 , ω ^ M .
The proof can be seen in Appendix A.
Let θ = S e 1 , S p 1 , S e 2 , S p 2 T be a vector whose components are the overall sensitivities and the overall specificities; then, by applying the delta method [7], the variance-covariance matrix of θ ^ is:
θ ^ = θ ψ ψ ^ θ ψ T + θ ω ^ ω ^ θ ω T .
The estimated variance-covariance matrix ^ θ ^ is obtained by substituting into this expression the parameters for their estimators.
The global hypothesis test (1) is equivalent to the hypothesis test:
H 0 : A θ = 0   vs .   H 1 : A θ 0 ,
where A is a complete range matrix with the size 2 × 4 , i.e.,
A = 1 0 1 0 0 1 0 1
By applying the multivariate central limit theorem, it is verified that n θ ^ θ N 0 , θ when n is large. Then, the statistic:
Q 2 = θ ^ T A T A ^ θ ^ A T 1 A θ ^
is distributed according to a Hotelling T-squared distribution. This distribution has 2 and n degrees of freedom, where 2 is the dimension of the vector A θ ^ . When n is large, Q 2 is distributed according to a central chi-squared distribution with 2 degrees of freedom when the null hypothesis is true, i.e.,
Q 2 = η ^ T A T A ^ η ^ A T 1 A η ^ n χ 2 2 .
To calculate this test statistic, it is necessary to verify that s 10 m + s 01 m + r 10 m + r 01 m > 0 .
The global hypothesis test (1) can also be solved from the individual hypothesis test, i.e., H 0 : S e 1 = S e 2 and H 0 : S p 1 = S p 2 , each of which are independent of the α error. In this situation, the corresponding test statistics are:
z = S ^ e 1 S ^ e 2 V ^ a r S ^ e 1 + V ^ a r S ^ e 2 2 C ^ o v S ^ e 1 , S ^ e 2
and:
z = S ^ p 1 S ^ p 2 V ^ a r S ^ p 1 + V ^ a r S ^ p 2 2 C ^ o v S ^ p 1 , S ^ p 2 .
Both test statistics have a normal standard distribution when the sample size n is large. Another method used to solve the global test consists of solving each of the individual tests along with a method of multiple comparisons, such as the Bonferroni method [8] or the Holm method [9]. The Bonferroni and Holm methods are very easy to apply and are based on the p-values of the individual hypothesis tests. In the situation studied here, the Bonferroni method consists of solving each individual hypothesis test with an α / 2 error. The Holm method is a less conservative method than the Bonferroni method. Let p 1 and p 2 be the p-values obtained in each individual hypothesis test and let us suppose that p 1 p 2 ; then, the Holm method [9] consists of the following two steps:
(1)
If p 1 > α / 2 , then none of the two null hypothesis H 0 : S e 1 = S e 2 and H 0 : S p 1 = S p 2 are rejected. If p 1 α / 2 , then the null hypothesis corresponding to that hypothesis test is rejected and we go on to the next step.
(2)
If p 2 > α , then the corresponding null hypothesis is not rejected. If p 2 α , then the null hypothesis is rejected and the process ends.
In this proposed model, it is assumed that a discrete covariate is observed in all of the individuals in the sample. If several discrete covariates are observed, the problem is solved in a similar manner. In this situation, a single discrete covariate is considered, whose number of patterns is the product of the patterns of the observed covariates [10]. For example, if two covariates are observed with two and three patterns, respectively, for example, sex and age group (young, adult, and older), then a covariate that has six patterns is considered (young man, adult man, older man, young woman, adult woman, and older woman).

3. Simulation Experiments

Monte Carlo simulation experiments were carried out to study the sizes and the powers of the four methods described in Section 2: global hypothesis test with α = 5 % ; individual hypothesis tests each with α = 5 % ; individual hypothesis tests along with the Bonferroni method and α = 5 % ; and individual hypothesis tests along with the Holm method and α = 5 % . For the global hypothesis test with α = 5 % , the global type I error is the error that is committed when the alternative hypothesis is accepted ( S e 1 S e 2 and/or S p 1 S p 2 ) when the null hypothesis is true ( S e 1 = S e 2 and S p 1 = S p 2 ). Regarding the individual hypothesis tests with α = 5 % (with or without a multiple comparison method), the objective is to study the magnitude and behavior of the global type I error and of the global power. The global type I error is the error made when we reject H 0 : S e 1 = S e 2 and/or H 0 : S p 1 = S p 2 when both are true, whether or not each test is with α = 5 % or applies the Bonferroni (or Holm) method. The argument for the global power is similar to this.
These experiments consisted of generating N = 10,000 random samples with multinomial distributions with a size of n = 50 , 100 , 200 , 500 , 1000 , 2000 , whose probabilities were calculated from Equation (2). It was considered that the discrete covariate X is binary M = 2 with patterns X 1 and X 2 , such as the presence of a risk factor (Yes or No), family history of the disease (Yes or No), or sex; this situation is very frequent in clinical practice. As values for ψ 1 ( ψ 2 = 1 ψ 1 ), we considered 0.25 and 0.50, and for the prevalence p m , we considered the values 10%, 25%, and 50%. As values of the sensitivities ( S e 11 , S e 12 , S e 21 and S e 22 ) and specificities ( S p 11 , S p 12 , S p 21 and S p 22 ) in each pattern of the covariate, we took the values 0.70 , 0.80 , 0.90 . Then, from the values S e h m and S p h m , we calculated the maximum values of the covariances α 1 m and α 0 m , and as values of α 1 m and α 0 m , we took intermediate and high values, i.e.,
α 1 m = f M a x S e 1 m , S e 2 m + 1 f
and:
α 0 m = f M a x 1 S p 1 m , 1 S p 2 m + 1 f ,
with f = 0.10 , 0.50 , 0.90 . From all of the above values, the overall sensitivities and overall specificities were calculated by applying Equation (3). The simulation experiments were designed in such a manner that, if it is not possible in a sample to estimate a parameter (for example, if S ^ e h m = 0 ), then that sample is discarded and another is generated in its place until N samples are obtained.

3.1. Type I Errors

Table 2 and Table 3 show the type I errors obtained for the four methods proposed in Section 2, considering different scenarios. Table 2 shows some results for S e h = 0.90 and S p h = 0.70 , 0.80 S e h > S p h , and Table 3 shows some results for S e h = 0.70 , 0.80 and S p h = 0.90 S e h < S p h .
In the study, it is considered that the type I error exceeds the nominal error when the global type I error is equal to or greater than or than 7%. The covariances α 1 m and α 0 m have an important effect on the type I errors of the four methods: type I errors decrease when the values of the covariances increase. From the results, the following general conclusions were obtained:
(a).
Global hypothesis test. The type I error of the global hypothesis test is very small when the sample size is small and increases as the sample size increases, until it approaches the nominal error without exceeding it. Therefore, the global hypothesis test is a conservative test when the sample size is small ( n = 50 ) or moderate n = 100 200 , and its global type I error approaches the nominal error (without exceeding it) when the sample size is large ( n = 500 1000 ) or very large n = 2000 .
(b).
Individual tests with α = 5 % . The type I error of the individual tests with α = 5 % is less than the nominal error when the sample size is small and increases as the sample size increases. The type I error can clearly exceed the nominal error when the sample size is large. Therefore, the method based on individual tests with α = 5 % can give false significance when the sample size is large and should not be used.
(c).
Individual tests combined with the Bonferroni method. The type I error of the method based on the individual tests combined with the Bonferroni method has a behavior very similar to the type I error of the global hypothesis test, and there is no important difference between both type I errors
(d).
Individual tests combined with the Holm method. The type I error of the method based on the individual tests combined with the Holm method is very similar (even the same in many cases) to the type I error of the individual tests combined with the Bonferroni method.

3.2. Powers

Table 4 and Table 5 show the powers obtained for the four methods proposed in Section 2, considering different scenarios.
The covariances α 1 m and α 0 m have an important effect on the powers of the methods: the powers increase when the values of the covariances increase. From the results, the following general conclusions are obtained:
(a).
The power of the method based on the individual tests with α = 5 % is greater than the powers of the other methods, due to the fact that its global type I error is also greater than that of the other methods (clearly exceeding the nominal error when the sample size is large).
(b).
The power of the method based on individual tests combined with the Bonferroni method and the power of the method based on individual tests combined with the Holm method are practically equal. Therefore, both methods show an asymptotic behavior, in terms of type I error and power, that is practically identical.
(c).
In very general terms, the power of the method based on the individual tests combined with Bonferroni (Holm) is slightly greater than the power of the global hypothesis test when the sample size is small or moderate. When the sample size is large or very large, the power of the global hypothesis test is, in very general terms, slightly higher than that of the method based on individual tests with Bonferroni (Holm). In these situations, all of these methods have a very similar type I error.

3.3. Application Rules

Based on the conclusions obtained from the simulation experiments, the following general application rules can be given when simultaneously comparing the accuracies of two BDTs in the presence of a binary covariate:
(a).
When the sample size is small or moderate, solve the individual hypothesis tests H 0 : S e 1 = S e 2 (Equation (8)) and H 0 : S p 1 = S p 2 (Equation (9)) combined with the Bonferroni (or Holm) method using an error α = 5 % .
(b).
When the sample size is large or very large, solve the global test H 0 : S e 1 = S e 2   and   S p 1 = S p 2 (Equation (7)) using an error α = 5 % . If the global hypothesis test is not significant, then the equality of the accuracy of the two BDTs is not rejected. If the global hypothesis test is significant, then the causes of the significance will be investigated via testing H 0 : S e 1 = S e 2 and H 0 : S p 1 = S p 2 by individually applying Equations (8) and (9) combined with the Bonferroni (Holm) method using an error α = 5 % . The global hypothesis test is initially applied because it is a somewhat more powerful method than the individual tests combined with the Bonferroni (Holm) method when the sample size is large or very large.
These application rules are given solely based on the sample size n because it is the only parameter of the study whose value was set by the researcher.

4. The “scapbc” Function

A function was written in R [5] that allows simultaneously comparing the accuracies of two BDTs subject to a paired design in the presence of a binary covariate. The function is called “scapbc” (simultaneous accuracy comparison in the presence of a binary covariate) and is executed with the command:
scapbc s 111 , s 101 , s 011 , s 001 , r 111 , r 101 , r 011 , r 001 , s 112 , s 102 , s 012 , s 002 , r 112 , r 102 , r 012 , r 002 , α
where s 111 , s 101 , , r 012 , r 002 are the observed frequencies and “ α ” is the α error. The function checks that the values of the arguments are valid. The function solves the problem by applying the rules given in Section 3.3, by applying the Bonferroni method. The results obtained are recorded in the file “results_scapbc.txt” in the same folder from which the function is run. The “scapbc” function is available as the Supplementary Materials of this manuscript.

5. Example

The results were applied to the diagnosis of coronary artery disease [11]. Weiner et al. [11] applied two BDTs (exercise test and clinical history) and a GS (coronary angiography) to a sample of 2045 patients (1465 men and 580 women). The observed frequencies of the study are shown in Table 6, where the variable T 1 models the result of the exercise test, T 2 models the result of the clinical history, and D models the result of the coronary angiography.
In this study, the risk of coronary heart disease is 2.4 times higher in men than in women [11]. The estimated value of the odds ratio is 5.63 (95% confidence interval: 4.56 to 6.95). Therefore, sex is a covariate that is related to the disease. In the exercise test, ST segment depression is less sensitive in women than in men, so sex is a covariate that can influence the test result. Therefore, adjusting for sex is necessary to simultaneously compare the two sensitivities and the two specificities. Executing the command
scapbc 786 , 29 , 183 , 25 , 69 , 46 , 176 , 151 , 124 , 4 , 32 , 9 , 81 , 68 , 101 , 161 , 0.05 ,
generates the results shown in Table 7.
Because the sample size is very large, the global hypothesis test is solved (application rules of Section 3.3). The test statistic for the global hypothesis test is Q 2 = 224.252 and p-value = 0. Therefore, the null hypothesis (equality of the two sensitivities and of the two specificities) of the global hypothesis test is rejected. To investigate the causes of significance, it is necessary to solve the individual tests and apply the Bonferroni (or Holm) method. The test statistic for H 0 : S e 1 = S e 2 vs. H 1 : S e 1 S e 2 is 12.265 p - value = 0 , and the test statistic for H 0 : S p 1 = S p 2 vs. H 1 : S p 1 S p 2 is 8.593 p - value = 0 . Applying the Bonferroni method with α = 5 % , the two null hypotheses are rejected. Therefore, the sensitivity of the clinical history is significantly greater than the sensitivity of the exercise test (95% confidence interval: 0.128 to 0.177), and the specificity of the exercise test is significantly greater than the specificity of the clinical history (95% confidence interval: 0.148 to 0.235). The same conclusions are obtained if the Holm method is applied.

6. Discussion

Comparison of the sensitivities and specificities of two BDTs is a topic of great interest in the study of statistical methods applied to diagnosis and has been the subject of numerous studies in the statistical literature. When two BDTs are compared, it is common to observe discrete covariates in all of the individuals in the sample. In this situation, if the covariates are related to the disease and to either of the two BDTs, then it is necessary to adjust for covariates. This adjustment has the purpose of eliminating the effect of the covariate in the estimation of the global sensitivity and specificity of each BDT, and consequently eliminating its effect in the comparison of the parameters. Therefore, adjustment for covariates is important because the comparison of two diagnostic tests may be biased when an adjustment is not made. This manuscript makes a contribution to this topic, by simultaneously comparing the accuracies of two BDTs by adjusting for discrete covariates. Therefore, in this manuscript the simultaneous comparison of the sensitivities and the specificities of two BDTs was studied when discrete covariates are observed in all of the individuals in the sample. The overall estimators of the sensitivities and specificities were obtained by applying the maximum likelihood method and the variances-covariances were estimated by applying the delta method. In this situation, simultaneous comparison of sensitivities and specificities of two BDTs was resolved by four methods: the global hypothesis test H 0 : S e 1 = S e 2   and   S p 1 = S p 2 with an α error; individual tests H 0 : S e 1 = S e 2 and H 0 : S p 1 = S p 2 , each with an α error; individual tests H 0 : S e 1 = S e 2 and H 0 : S p 1 = S p 2 and application of the Bonferroni method with an α error; and individual tests H 0 : S e 1 = S e 2 and H 0 : S p 1 = S p 2 and application of the Holm method with an α error.
Simulation experiments were carried out to study the behaviors of the different methods when the covariate is binary. The results showed that the method based on the individual tests H 0 : S e 1 = S e 2 and H 0 : S p 1 = S p 2 , each with an α error, can give rise to type I errors that far exceed the nominal error, and therefore this method gives rise to too many false significances. Furthermore, the method based on the global hypothesis test has better asymptotic behavior when the sample size is large or very large than the methods based on individual tests and the application of the Bonferroni or Holm methods. However, when the sample size is small or moderate, these latter two methods perform better than the method based on the global hypothesis test. Therefore, based on the results of the simulation experiments, some rules of application of the methods can be given according to the sample size (which is the only value set by the researcher). These rules are: (a) When the sample size is small or moderate, solve the individual hypothesis tests H 0 : S e 1 = S e 2 and H 0 : S p 1 = S p 2 combined with the Bonferroni (or Holm) method with an error α = 5 % ; (b) When the sample size is large or very large, solve the global test H 0 : S e 1 = S e 2   and   S p 1 = S p 2 with an error α = 5 % . If the global hypothesis test is not significant, then it is not rejected that the two sensitivities are equal and that the two specificities are equal. If the global hypothesis test is significant, then the causes of significance are investigated by solving the individual tests combined with the Bonferroni (Holm) method with an error α = 5 % . The method based on the global hypothesis test is very similar to the analysis of variance: first the global test is solved and, if it is significant, then the individual tests are solved and a multiple comparisons method is applied.
Simulation experiments have shown that the covariances between the two BDTs have an important effect on type I errors and powers. Type I errors are greater when the two BDTs are conditionally independent of the disease than when the two BDTs are conditionally dependent on the disease. Regarding the powers, for a fixed sample size, the power of each method is greater when the two BDTs are conditionally dependent on the disease than when they are conditionally independent of the disease. In practice, the only parameter that the researcher can control is the sample size. Therefore, although the effect of the covariances is important, the increase in power can only be achieved by increasing the sample size (the researcher cannot increase the values of the covariances, because these depend on the intrinsic properties of both diagnostic tests).
Simulation experiments have also shown that the global hypothesis test, whose test statistic is a Wald-type test statistic, has a good asymptotic performance in terms of type I error and power. The type I error of the global test is close to the nominal error when the sample size is large or very large. Regarding the power, in general terms and depending on the covariances between the two BDTs, a large sample size is needed for the power to be large. Therefore, the global test performance when the covariate is binary is very similar to that obtained in other studies [2].
The proposed method is based on the fact that the covariate is discrete. A future study should address the problem that occurs when the covariate is quantitative.
Finally, a function was written in R that allows us to solve the problem posed when the covariate is binary. The function is easy to use and provides all of the results so that the researcher can easily solve the problem. The function is available as Supplementary Materials to this manuscript.

Supplementary Materials

The following are available online at https://www.mdpi.com/article/10.3390/math9172029/s1. The “scapbc” function is a function written in R that allows simultaneous comparison of the accuracies of two BDTs subject to a paired design in the presence of a binary covariate.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The author wants to thank the anonymous referees for their helpful comments that improved the quality of the manuscript.

Conflicts of Interest

The author declares no conflict of interest.

Appendix A

The log-likelihood function l 2 ω (Equation (6)) can be written as:
l 2 ω = i , j = 0 1 m = 1 M x i j m log ϕ i j m + i , j = 0 1 m = 1 M y i j m log φ i j m = m = 1 M l 2 m ,
where:
l 2 m = i , j = 0 1 x i j m log ϕ i j m + y i j m log φ i j m
is the log-likelihood function in the m th covariate pattern. Then, the Fisher information matrix of function l 2 ω is:
I 2 = D i a g I 21 , , I 2 M
and, therefore:
ω ^ = I 2 1 = D i a g ω ^ 1 , ω ^ M .

References

  1. Zhou, X.H.; Obuchowski, N.A.; McClish, D.K. Statistical Methods in Diagnostic Medicine, 2nd ed.; John Wiley & Sons: Hoboken, NJ, USA, 2011. [Google Scholar]
  2. Roldán-Nofuentes, J.A.; Sidaty-Regad, S.B. Recommended methods to compare the accuracy of two binary diagnostic tests subject to a paired design. J. Stat. Comput. Simul. 2019, 89, 2621–2644. [Google Scholar] [CrossRef]
  3. Janes, H.; Pepe, M.S. Adjusting for Covariates in Studies of Diagnostic, Screening, or Prognostic Markers: An Old Concept in a New Setting. Am. J. Epidemiol. 2008, 168, 89–97. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  4. Lahner, E.; Dilaghi, E.; Prestigiacomo, C.; Alessio, G.; Marcellini, L.; Simmaco, M.; Santino, I.; Orsi, G.B.; Anibaldi, P.; Marcolongo, A.; et al. Prevalence of SARS-CoV-2 infection in health workers (HWs) and diagnostic test performance: The experience of a teaching Hospital in Central Italy. Int. J. Environ. Res. Public Health 2020, 17, 4417. [Google Scholar] [CrossRef] [PubMed]
  5. R Core Team. R: A Language and Environment for Statistical Computing; R Core Team: Vienna, Austria, 2016; Available online: https://www.R-project.org/ (accessed on 8 July 2021).
  6. Berry, G.; Smith, C.; Macaskill, P.; Irwig, L. Analytic methods for comparing two dichotomous screening or diagnostic tests applied to two populations of differing disease prevalence when individuals negative on both tests are unverified. Stat. Med. 2002, 21, 853–862. [Google Scholar] [CrossRef] [PubMed]
  7. Agresti, A. Categorical Data Analysis, 3rd ed.; Wiley: New York, NY, USA, 2013. [Google Scholar]
  8. Bonferroni, C.E. Teoria statistica delle classi e calcolo delle probabilità. Pubbl. R Ist. Super. Sci. Econ. Commer. Firenze 1936, 8, 3–62. [Google Scholar]
  9. Holm, S. A simple sequential rejective multiple testing procedure. Scand. J. Stat. 1979, 6, 65–70. [Google Scholar]
  10. Hosmer, D.W.; Lemeshow, S. Applied Logistic Regression, 2nd ed.; Wiley: New York, NY, USA, 2000. [Google Scholar]
  11. Weiner, D.A.; Ryan, T.J.; McCabe, C.H.; Kennedy, J.W.; Schloss, M.; Tristani, F.; Chaitman, B.R.; Fisher, L.D. Correlations among history of angina, ST-segment and prevalence of coronary artery disease in the coronary artery surgery study (CASS). N. Engl. J. Med. 1979, 301, 230–235. [Google Scholar] [CrossRef] [PubMed]
Table 1. Observed frequencies for X = X m .
Table 1. Observed frequencies for X = X m .
T 1 = 1 T 1 = 0 Total
T 2 = 1 T 2 = 0 T 2 = 1 T 2 = 0
D = 1 s 11 m s 10 m s 01 m s 00 m s m
D = 0 r 11 m r 10 m r 01 m r 00 m r m
Total n 11 m n 10 m n 01 m n 00 m n m
Table 2. Type I errors (in %) of different methods to simultaneously compare the sensitivities S e h = 0.90 and specificities S p h = 0.70 , 0.80 of two BDTs in the presence of a binary covariate.
Table 2. Type I errors (in %) of different methods to simultaneously compare the sensitivities S e h = 0.90 and specificities S p h = 0.70 , 0.80 of two BDTs in the presence of a binary covariate.
S e 1 = S e 2 = 0.90 ,   S p 1 = S p 2 = 0.70 ,   p 1 = 10 % ,   p 2 = 25 % ,   ψ 1 = 25 % ,   ψ 2 = 75 %
α 11 = 0.009   α 01 = 0.021 α 12 = 0.009   α 02 = 0.021 α 11 = 0.045   α 01 = 0.105 α 12 = 0.045   α 02 = 0.105 α 11 = 0.081   α 01 = 0.189 α 12 = 0.081   α 02 = 0.189
nM1M2M3M4M1M2M3M4M1M2M3M4
500.342.141.081.080.080.880.340.340000
1001.284.102.082.080.862.881.421.4200.0200
2001.404.522.362.361.203.701.641.640.020.820.160.16
5001.984.482.602.601.784.662.462.460.583.001.381.38
10002.305.242.742.781.824.822.382.380.883.261.481.48
20003.507.243.583.602.445.262.402.401.204.181.961.96
S e 1 = S e 2 = 0.90 ,   S p 1 = S p 2 = 0.70 ,   p 1 = 10 %   ,   p 2 = 25 % ,   ψ 1 = 50 % ,   ψ 2 = 50 %
α 11 = 0.009   α 01 = 0.021 α 12 = 0.009   α 02 = 0.021 α 11 = 0.045   α 01 = 0.105 α 12 = 0.045   α 02 = 0.105 α 11 = 0.081   α 01 = 0.189 α 12 = 0.081   α 02 = 0.189
nM1M2M3M4M1M2M3M4M1M2M3M4
500.582.421.261.260.101.020.220.220000
1001.204.081.861.860.502.881.161.1600.0400
2001.764.402.222.221.163.641.581.580.040.680.140.14
5002.444.982.422.421.604.201.821.820.643.081.201.20
10003.227.063.083.102.565.822.983.041.083.661.761.76
20004.208.164.224.283.267.143.263.321.764.482.062.06
S e 1 = S e 2 = 0.90 ,   S p 1 = S p 2 = 0.80 ,   p 1 = 10 % ,   p 2 = 25 % ,   ψ 1 = 25 % ,   ψ 2 = 75 %
α 11 = 0.009   α 01 = 0.016 α 12 = 0.009   α 02 = 0.016 α 11 = 0.045   α 01 = 0.080 α 12 = 0.045   α 02 = 0.080 α 11 = 0.081   α 01 = 0.144 α 12 = 0.081   α 02 = 0.144
nM1M2M3M4M1M2M3M4M1M2M3M4
500.241.380.580.5800.450.050.050000
1000.923.301.681.680.402.150.750.750000
2001.144.241.901.900.752.751.151.1500.300.050.05
5001.764.682.362.361.403.751.851.850.252.250.700.70
10002.485.082.682.681.554.802.152.151.003.151.651.65
20003.286.223.223.222.806.453.203.201.753.952.352.35
S e 1 = S e 2 = 0.90 ,   S p 1 = S p 2 = 0.80 ,   p 1 = 10 % ,   p 2 = 25 % ,   ψ 1 = 50 % ,   ψ 2 = 50 %
α 11 = 0.009   α 01 = 0.016 α 12 = 0.009   α 02 = 0.016 α 11 = 0.045   α 01 = 0.080 α 12 = 0.045   α 02 = 0.080 α 11 = 0.081   α 01 = 0.144 α 12 = 0.081   α 02 = 0.144
nM1M2M3M4M1M2M3M4M1M2M3M4
500.321.780.660.660.040.740.220.220000
1001.223.621.841.840.422.400.840.840000
2001.524.482.042.041.083.501.461.4600.480.020.02
5002.405.282.662.661.704.542.222.220.322.020.560.56
10003.226.783.123.122.425.242.322.320.883.521.481.48
20003.748.103.883.883.567.303.803.861.644.522.282.28
M1: global hypothesis test. M2: individual test with α = 5%. M3: individual tests with Bonferroni method. M4: individual tests with Holm method.
Table 3. Type I errors (in %) of different methods to simultaneously compare the sensitivities S e h = 0.70 , 0.80 and specificities S p h = 0.90 of two BDTs in the presence of a binary covariate.
Table 3. Type I errors (in %) of different methods to simultaneously compare the sensitivities S e h = 0.70 , 0.80 and specificities S p h = 0.90 of two BDTs in the presence of a binary covariate.
S e 1 = S e 2 = 0.70 ,   S p 1 = S p 2 = 0.90 ,   p 1 = 10 % ,   p 2 = 25 % ,   ψ 1 = 50 % ,   ψ 2 = 50 %
α 11 = 0.021   α 01 = 0.009 α 12 = 0.021   α 02 = 0.009 α 11 = 0.105   α 01 = 0.045 α 12 = 0.105   α 02 = 0.045 α 11 = 0.189   α 01 = 0.081 α 12 = 0.189   α 02 = 0.081
nM1M2M3M4M1M2M3M4M1M2M3M4
500.100.660.200.2000.08000000
1000.722.401.061.060.020.680.140.140000
2001.884.781.721.740.622.600.740.760.020.080.020.02
5002.686.042.642.701.984.381.962.000.100.680.240.24
10003.888.644.004.043.147.263.303.360.802.541.101.10
20004.548.844.524.584.248.824.084.101.444.061.481.48
S e 1 = S e 2 = 0.70 ,   S p 1 = S p 2 = 0.90 ,   p 1 = 10 % ,   p 2 = 50 % ,   ψ 1 = 25 % ,   ψ 2 = 75 %
α 11 = 0.021   α 01 = 0.009 α 12 = 0.021   α 02 = 0.009 α 11 = 0.105   α 01 = 0.045 α 12 = 0.105   α 02 = 0.045 α 11 = 0.189   α 01 = 0.081 α 12 = 0.189   α 02 = 0.081
nM1M2M3M4M1M2M3M4M1M2M3M4
5000.220.040.0400000000
1000.261.820.420.420.040.560.060.060000
2000.882.981.201.200.321.960.600.600000
5002.264.461.981.981.284.241.761.760.020.360.120.12
10003.186.683.183.221.984.922.082.080.381.720.660.66
20003.788.203.743.863.466.883.223.241.183.741.401.40
S e 1 = S e 2 = 0.80 ,   S p 1 = S p 2 = 0.90 ,   p 1 = 10 % ,   p 2 = 25 % ,   ψ 1 = 25 % ,   ψ 2 = 75 %
α 11 = 0.016   α 01 = 0.009 α 12 = 0.016   α 02 = 0.009 α 11 = 0.080   α 01 = 0.045 α 12 = 0.080   α 02 = 0.045 α 11 = 0.144   α 01 = 0.081 α 12 = 0.144   α 02 = 0.081
nM1M2M3M4M1M2M3M4M1M2M3M4
500.060.600.140.1400.040.020.020000
1000.722.661.081.080.060.740.160.160000
2001.584.501.441.460.622.480.980.9800.0200
5003.246.302.842.881.964.622.062.060.060.840.140.14
10003.628.123.663.762.786.582.762.860.542.300.880.88
20005.109.825.065.124.288.084.004.041.604.161.941.94
S e 1 = S e 2 = 0.80 ,   S p 1 = S p 2 = 0.90 ,   p 1 = 10 % ,   p 2 = 50 % ,   ψ 1 = 25 % ,   ψ 2 = 75 %
α 11 = 0.016   α 01 = 0.009 α 12 = 0.016   α 02 = 0.009 α 11 = 0.080   α 01 = 0.045 α 12 = 0.080   α 02 = 0.045 α 11 = 0.144   α 01 = 0.081 α 12 = 0.144   α 02 = 0.081
nM1M2M3M4M1M2M3M4M1M2M3M4
5000.200.020.0200000000
1000.101.580.180.180.020.320.060.060000
2001.063.141.521.520.262.020.560.560000
5001.784.341.921.921.463.841.761.760.000.420.140.14
10002.446.022.622.642.064.642.102.100.261.680.580.58
20004.028.243.944.002.886.422.942.940.822.941.141.14
M1: global hypothesis test. M2: individual test with α = 5%. M3: individual tests with Bonferroni method. M4: individual tests with Holm method.
Table 4. Powers (in %) of different methods to simultaneously compare the sensitivities S e h = 0.70 , 0.90 and specificities S p h = 0.70 , 0.90 of two BDTs in the presence of a binary covariate.
Table 4. Powers (in %) of different methods to simultaneously compare the sensitivities S e h = 0.70 , 0.90 and specificities S p h = 0.70 , 0.90 of two BDTs in the presence of a binary covariate.
S e 1 = 0.70 ,   S e 2 = 0.90 ,   S p 1 = 0.90 ,   S p 2 = 0.90 ,   p 1 = 10 % ,   p 2 = 25 % ,   ψ 1 = 25 % ,   ψ 2 = 75 %
α 11 = 0.007   α 01 = 0.009 α 12 = 0.007   α 02 = 0.009 α 11 = 0.035   α 01 = 0.045 α 12 = 0.035   α 02 = 0.045 α 11 = 0.063   α 01 = 0.081 α 12 = 0.063   α 02 = 0.081
nM1M2M3M4M1M2M3M4M1M2M3M4
500.040.480.140.1400.10000000
1000.542.400.800.800.020.600.120.120.010.010.010.01
2001.724.121.681.680.862.900.840.840.020.300.020.02
5005.268.983.783.844.787.923.363.402.044.381.461.48
100021.0431.7820.4820.6423.1835.1622.5222.7421.2637.6622.7622.90
200056.2470.7258.0858.4266.1878.7268.4068.6077.8288.6081.3081.48
S e 1 = 0.70 ,   S e 2 = 0.90 ,   S p 1 = 0.90 ,   S p 2 = 0.90 ,   p 1 = 10 % ,   p 2 = 50 % ,   ψ 1 = 25 % ,   ψ 2 = 75 %
α 11 = 0.007   α 01 = 0.009 α 12 = 0.007   α 02 = 0.009 α 11 = 0.035   α 01 = 0.045 α 12 = 0.035   α 02 = 0.045 α 11 = 0.063   α 01 = 0.081 α 12 = 0.063   α 02 = 0.081
nM1M2M3M4M1M2M3M4M1M2M3M4
500.020.280.080.0800.04000000
1000.181.680.260.260.010.360.010.010.010.010.010.01
2001.323.401.281.280.562.160.500.510.020.060.020.02
5005.429.343.944.084.248.283.323.381.624.901.721.72
100020.8431.5020.7620.9621.1432.6821.1621.3821.437.8822.8823.16
200055.1269.8456.8457.2265.4277.5867.1667.4477.5289.3881.3981.46
S e 1 = 0.90 ,   S e 2 = 0.70 ,   S p 1 = 0.90 ,   S p 2 = 0.70 ,   p 1 = 10 % ,   p 2 = 25 % ,   ψ 1 = 25 % ,   ψ 2 = 75 %
α 11 = 0.007   α 01 = 0.007 α 12 = 0.007   α 02 = 0.007 α 11 = 0.035   α 01 = 0.035 α 12 = 0.035   α 02 = 0.035 α 11 = 0.063   α 01 = 0.063 α 12 = 0.063   α 02 = 0.063
nM1M2M3M4M1M2M3M4M1M2M3M4
501.706.783.543.541.345.662.962.961.025.622.682.68
1008.9819.3412.4612.4610.2621.2813.9413.9411.7824.7616.0616.06
20030.0142.8829.5429.5433.8249.9633.5633.5644.8058.6244.2244.22
50078.6285.3077.1677.4486.4690.6684.3084.5692.3695.4891.7491.78
100098.6899.1898.3498.4699.5899.7099.1699.2099.9810099.9299.94
2000100100100100100100100100100100100100
S e 1 = 0.90 ,   S e 2 = 0.70 ,   S p 1 = 0.90 ,   S p 2 = 0.70 ,   p 1 = 10 % ,   p 2 = 25 % ,   ψ 1 = 50 % ,   ψ 2 = 50 %
α 11 = 0.007   α 01 = 0.007 α 12 = 0.007   α 02 = 0.007 α 11 = 0.035   α 01 = 0.035 α 12 = 0.035   α 02 = 0.035 α 11 = 0.063   α 01 = 0.063 α 12 = 0.063   α 02 = 0.063
nM1M2M3M4M1M2M3M4M1M2M3M4
500.442.160.840.840.281.500.560.560.121.420.440.44
1001.604.782.282.281.163.941.881.881.023.521.481.48
2005.1810.884.464.704.7210.084.044.285.1810.664.424.48
50025.2634.7222.2422.4229.0839.2424.8025.2632.8842.3826.6427.46
100062.7874.7659.6060.2471.5881.8468.5069.2085.3291.1883.8484.32
200093.4495.9692.3492.6297.6698.6696.8697.0099.8299.9499.7499.74
M1: global hypothesis test. M2: individual test with α = 5%. M3: individual tests with Bonferroni method. M4: individual tests with Holm method.
Table 5. Powers (in %) of different methods to simultaneously compare the sensitivities S e h = 0.80 , 0.90 and specificities S p h = 0.70 , 0.80 , 0.90 of two BDTs in the presence of a binary covariate.
Table 5. Powers (in %) of different methods to simultaneously compare the sensitivities S e h = 0.80 , 0.90 and specificities S p h = 0.70 , 0.80 , 0.90 of two BDTs in the presence of a binary covariate.
S e 1 = 0.80 ,   S e 2 = 0.90 ,   S p 1 = 0.90 ,   S p 2 = 0.70 ,   p 1 = 10 % ,   p 2 = 25 % ,   ψ 1 = 25 % ,   ψ 2 = 75 %
α 11 = 0.008   α 01 = 0.007 α 12 = 0.008   α 02 = 0.007 α 11 = 0.040   α 01 = 0.035 α 12 = 0.040   α 02 = 0.035 α 11 = 0.072   α 01 = 0.063 α 12 = 0.072   α 02 = 0.063
nM1M2M3M4M1M2M3M4M1M2M3M4
501.946.663.863.861.386.303.163.161.086.042.862.86
1008.4618.8012.1612.169.7821.3813.9013.9011.8224.1016.8216.82
20029.8643.3029.6829.6835.1247.8635.0135.0142.7658.1642.2642.26
50076.6283.9475.4075.4084.2289.6283.8483.8892.8095.2091.3291.32
100097.7898.8897.4897.5499.2299.6899.0699.0899.9099.9899.8899.88
2000100100100100100100100100100100100100
S e 1 = 0.80 ,   S e 2 = 0.90 ,   S p 1 = 0.90 ,   S p 2 = 0.70 ,   p 1 = 10 % ,   p 2 = 50 % ,   ψ 1 = 25 % ,   ψ 2 = 75 %
α 11 = 0.008   α 01 = 0.007 α 12 = 0.008   α 02 = 0.007 α 11 = 0.040   α 01 = 0.035 α 12 = 0.040   α 02 = 0.035 α 11 = 0.072   α 01 = 0.063 α 12 = 0.072   α 02 = 0.063
nM1M2M3M4M1M2M3M4M1M2M3M4
500.262.600.860.860.121.860.680.680.161.600.480.48
1002.586.783.783.782.246.823.523.521.765.862.922.92
2008.1813.648.068.068.3814.828.328.329.2216.469.169.16
50021.1230.9821.0421.0426.7435.7026.2426.3429.5641.8429.3829.38
100049.1058.3846.0046.3858.1266.6054.8455.2268.7875.7265.3465.58
200084.4888.2280.6281.0891.3693.7087.8888.3497.0297.6695.0495.54
S e 1 = 0.90 ,   S e 2 = 0.80 ,   S p 1 = 0.90 ,   S p 2 = 0.80 ,   p 1 = 10 % ,   p 2 = 25 % ,   ψ 1 = 25 % ,   ψ 2 = 75 %
α 11 = 0.008   α 01 = 0.008 α 12 = 0.008   α 02 = 0.008 α 11 = 0.040   α 01 = 0.040 α 12 = 0.040   α 02 = 0.040 α 11 = 0.072   α 01 = 0.072 α 12 = 0.072   α 02 = 0.072
nM1M2M3M4M1M2M3M4M1M2M3M4
500.342.180.900.900.301.760.620.620.020.840.240.24
1002.807.104.184.182.227.583.883.881.447.322.882.88
2009.9016.789.829.8210.2619.7010.1610.1614.3624.5614.2914.29
50028.4038.2428.3128.3137.6849.3437.5437.6055.8266.8855.5755.57
100060.6269.4457.9258.1874.0881.6671.5471.9091.4295.0090.4690.58
200091.4694.3089.4289.9097.7698.2496.8097.0099.9210099.8099.80
S e 1 = 0.90 ,   S e 2 = 0.80 ,   S p 1 = 0.90 ,   S p 2 = 0.80 ,   p 1 = 10 % ,   p 2 = 25 % ,   ψ 1 = 50 % ,   ψ 2 = 50 %
α 11 = 0.008   α 01 = 0.008 α 12 = 0.008   α 02 = 0.008 α 11 = 0.040   α 01 = 0.040 α 12 = 0.040   α 02 = 0.040 α 11 = 0.072   α 01 = 0.072 α 12 = 0.072   α 02 = 0.072
nM1M2M3M4M1M2M3M4M1M2M3M4
500.181.440.460.460.080.860.220.220.020.340.060.06
1001.103.401.501.500.482.280.900.900.361.900.680.68
2002.566.022.522.542.375.602.322.321.714.041.581.58
5007.6012.806.646.787.6212.325.986.067.6811.305.285.36
100020.0831.1017.9618.4624.5235.7022.7823.0831.7042.4027.6028.28
200045.5857.1243.3443.8456.8668.7055.3055.9280.2486.6279.0679.52
M1: global hypothesis test. M2: individual test with α = 5%. M3: individual tests with Bonferroni method. M4: individual tests with Holm method.
Table 6. Observed frequencies in the study of Weiner et al.
Table 6. Observed frequencies in the study of Weiner et al.
Men
T 1 = 1 T 1 = 0 Total
T 2 = 1 T 2 = 0 T 2 = 1 T 2 = 0
D = 1 78629183251023
D = 0 6946176151442
Total855753591761465
Women
T 1 = 1 T 1 = 0 Total
T 2 = 1 T 2 = 0 T 2 = 1 T 2 = 0
D = 1 1244329169
D = 0 8168101161411
Total20572133170580
Table 7. Results obtained in the study of Weiner et al.
Table 7. Results obtained in the study of Weiner et al.
Estimates by Sex
S ^ e 1 m ± S E S ^ p 1 m ± S E S ^ e 2 m ± S E S ^ p 2 m ± S E p ^ m ψ ^ m
Men 0.797 ± 0.013 0.740 ± 0.021 0.947 ± 0.007 0.446 ± 0.024 69.8%71.6%
Women 0.757 ± 0.033 0.637 ± 0.024 0.923 ± 0.020 0.557 ± 0.025 29.1%28.4%
Overall estimates
S ^ e h ± S E S ^ p h ± S E p ^
Exercise test 0.791 ± 0.012 0.691 ± 0.016 58.3%
Clinical history 0.944 ± 0.007 0.499 ± 0.017
SE: standard error.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Roldán-Nofuentes, J.A. Simultaneous Comparison of Sensitivities and Specificities of Two Diagnostic Tests Adjusting for Discrete Covariates. Mathematics 2021, 9, 2029. https://doi.org/10.3390/math9172029

AMA Style

Roldán-Nofuentes JA. Simultaneous Comparison of Sensitivities and Specificities of Two Diagnostic Tests Adjusting for Discrete Covariates. Mathematics. 2021; 9(17):2029. https://doi.org/10.3390/math9172029

Chicago/Turabian Style

Roldán-Nofuentes, José Antonio. 2021. "Simultaneous Comparison of Sensitivities and Specificities of Two Diagnostic Tests Adjusting for Discrete Covariates" Mathematics 9, no. 17: 2029. https://doi.org/10.3390/math9172029

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop