Simultaneous Comparison of Sensitivities and Specificities of Two Diagnostic Tests Adjusting for Discrete Covariates
Abstract
The author wants to thank the anonymous referees for their helpful comments that improved the quality of the manuscript.
Full text
mathematics Article Simultaneous Comparison of Sensitivities and Specificities of Two Diagnostic Tests Adjusting for Discrete Covariates JoséAntonio Roldán-Nofuentes Citation: 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 Academic Editor: Maria Laura Manca Received: 28 July 2021 Accepted: 20 August 2021 Published: 24 August 2021 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2021 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). Department of Statistics, School of Medicine, University of Granada, 18016 Granada, Spain; [email protected] 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. Keywords: binary diagnostic test; sensitivity; specificity; simultaneous comparison 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 npatients 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 H0 : Se1=Se2 vs. H1 : Se16=Se2 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 H0 : Sp1=Sp2 vs. H1 : Sp16=Sp2 by applying the same method. Therefore, sensitivities and specificities are compared independently, by solving the hypothesis tests H0 : Se1=Se2 and H0 : Sp1=Sp2 , 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 Mathematics 2021,9, 2029. https://doi.org/10.3390/math9172029 https://www.mdpi.com/journal/mathematics
Mathematics 2021,9, 2029 2 of 16 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: H0:(Se1=Se2and Sp1=Sp2)vs. H1:(Se16=Se2and/or Sp16=Sp2)(1) 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 Th be the binary random variable that models the result of the hth BDT: Th= 1 when the result of the BDT is positive and Th= 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 nindividuals of the sample we observe a vector X=(X1,X2, . . . , XM) of a discrete covariate, where Xm 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=Xm is nm , and therefore n=M ∑ m=1 nm. Table 1shows the observed frequencies for X=Xm, where nijm =sijm +rijm.
Mathematics 2021,9, 2029 3 of 16 Table 1. Observed frequencies for X=Xm. T1=1T1=0Total T2=1T2=0T2=1T2=0 D=1s11ms10ms01ms00msm D=0r11mr10mr01mr00mrm Total n11mn10mn01mn00mnm The sample of n individuals is the product of a multinomial distribution whose probabilities are: τmij =P(X=Xm,D=1, T1=i,T2=j) and: υmij =P(X=Xm,D=0, T1=i,T2=j), with: M ∑ m=1 1 ∑ i,j=0 τmij + M ∑ m=1 1 ∑ i,j=0 υmij =1. From the multinomial distribution sized n and probabilities τmij and υmij , 8 M− 1 parameters can be estimated, because in total there are 8 M probabilities that are subject to M ∑ m=1 1 ∑ i,j=0 τmij +M ∑ m=1 1 ∑ i,j=0 υmij = 1 (i.e., υM11 = 1 −M ∑ m=1 1 ∑ i,j=0 τmij −M ∑ m=1 1 ∑ i,j=0 υmij (m,i,j)6=(M,1,1) ). If the covariate is binary, then 15 parameters can be estimated. Let ψm=P(X=Xm) be the probability that an individual X=Xm and ψ=(ψ1,...,ψM)T , with M ∑ m=1 ψm=1. Let φijm and ϕijm be the probabilities defined as φijm =P(D=1, T1=i,T2=j|X=Xm)and ϕijm =P(D=0, T1=i,T2=j|X=Xm), then probabilities τmij and υmij can be written as: τmij =ψmφijm and υmij =ψmϕijm. (2) 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=Xm , and applying the conditional dependence model of Berry et al. [6], it holds that: φijm =P(D=1, T1=i,T2=j|X=Xm)= P(D=1|X=xm)P(T1=i|X=Xm,D=1)×P(T2=j|X=Xm,D=1)+δijε1m= pmhSei 1m(1−Se1m)1−iSej 2m(1−Se2m)1−j+δijSe1mSe2m(α1m−1)i and: ϕijm =P(D=0, T1=i,T2=j|X=Xm)= P(D=0|X=xm)P(T1=i|X=Xm,D=0)×P(T2=j|X=Xm,D=0)+δijε0m= qmhSp1−i 1m(1−Sp1m)iSp1−j 2m(1−Sp2m)j+δij(1−Sp1m)(1−Sp2m)(α0m−1)i, where pm=P(D=1|X=Xm)=1 ∑ i,j=0 φijm is the disease prevalence for the individuals with X=Xm , qm= 1 −pm , δij = 1 if i=j and δij =− 1 if i6=j , and the parameter α1m(α0m) is the covariance [ 6 ] between both BDTs when D= 1 (D=0) and X=Xm . The covariances verify [ 6 ] that 1 ≤α1m≤1/max{Se1m,Se2m} and 1 ≤α0m≤ 1/max{(1−Sp1m),(1−Sp2m)} . If α1m=α0m= 1, then both BDTs are conditionally inde-
Mathematics 2021,9, 2029 4 of 16 pendent on the disease when X=Xm , an assumption that is not realistic, so in practice α1m>1 and/or α0m>1. For the mth table (i.e., X=Xm ), let ωm=(φ11m,φ10m,φ01m,φ00m,ϕ11m,ϕ10m,ϕ01m,ϕ00m)T be the vector whose components are the probabilities φijm and ]ϕijm . Therefore, conditioning on X=Xm , ωm is the probability vector of a multinomial distribution. Let ω=(ω1, . . . , ωM)T be the vector whose components are ωm . In X=Xm , the sensitivities of the BDTs are: Se1m=P(T1=1|D=1, X=Xm)and Se2m=P(T2=1|D=1, X=Xm), and the specificities are: Sp1m=P(T1=0|D=0, X=Xm)and Sp2m=P(T2=0|D=0, X=Xm). Let p=M ∑ m=1 ψmpm=M ∑ m=1 ψm 1 ∑ i,j=0 φijm!be the overall prevalence and q=1−p =M ∑ m=1 ψmqm=M ∑ m=1 ψm 1 ∑ i,j=0 ϕijm! . The overall sensitivity and the overall specificity of each BDT are: Seh=P(Th=1|D=1)= M ∑ m=1 ψmpmSehm pand Sph=P(Th=0|D=0)= M ∑ m=1 ψmqmSphm q,(3) With h=1, 2, and where: Se1m=φ11m+φ10m pmand Sp1m=ϕ01m+ϕ00m qm are the sensitivity and specificity of Test 1 in X=Xm, and: Se2m=φ11m+φ01m pmand Sp2m=ϕ10m+ϕ00m qm are the sensitivity and specificity of Test 2 in X=Xm . The overall sensitivity and the overall specificity of each BDT are written in terms of ψm,φijm and ϕijm as: Se1= M ∑ m=1 ψm(φ11m+φ10m) M ∑ m=1 ψm 1 ∑ i,j=0 φijm!and Sp1= M ∑ m=1 ψm(ϕ00m+ϕ01m) M ∑ m=1 ψm 1 ∑ i,j=0 ϕijm! for Test 1, and: Se2= M ∑ m=1 ψm(φ11m+φ01m) M ∑ m=1 ψm 1 ∑ i,j=0 φijm!and Sp2= M ∑ m=1 ψm(ϕ00m+ϕ10m) M ∑ m=1 ψm 1 ∑ i,j=0 ϕijm! 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 ∑ m=1 ψm= 1). If the covariate is binary ( M= 2) then 15 parameters must be estimated:
Mathematics 2021,9, 2029 5 of 16 four sensitivities ( Se11 , Se21 , Se12 and Se22 ), four specificities ( Sp11 , Sp21 , Sp12 and Sp22 ), four covariances ( α11 , α01 , α12 and α02 ), two prevalences ( p1 and p2 ) 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 nindividuals is: l(ψ,ω)= 1 ∑ i,j=0 M ∑ m=1 xijm logψmφijm+ 1 ∑ i,j=0 M ∑ m=1 yijm logψmϕijm. This function can be written as: l(ψ,ω)=l1(ψ)+l2(ω), (4) where: l1(ψ)= 1 ∑ i,j=0 M ∑ m=1 nijm log(ψm)(5) and: l2(ω)= 1 ∑ i,j=0 M ∑ m=1 xijm logφijm+ 1 ∑ i,j=0 M ∑ m=1 yijm logϕijm. (6) Maximum likelihood estimators of ψ and ω are easily obtained from Functions (5) and (6), i.e., ˆ ψm=nm n,ˆ φijm =sijm nmand ˆ ϕijm =rijm nm. The estimators of sensitivities and specificities in X=Xm , 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{I1,I2}, where I1=I(ψ) and I2=I(ω) are the Fisher information matrixes of Functions (5) and (6) respectively, verifying that: I−1(ψ,ω)=DiagnI−1 1,I−1 2o 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=nDiag(ψ)−ψψTo/n. The variance-covariance matrix of ˆ ωmis: ∑ˆ ωm=nDiag(ωm)−ωmωT mo/nm and the variance-covariance matrix of ˆ ωis: ∑ˆ ω=I−1 2=Diagn∑ˆ ω1, . . . ∑ˆ ωMo. The proof can be seen in Appendix A.
Mathematics 2021,9, 2029 6 of 16 Let θ=(Se1,Sp1,Se2,Sp2)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: H0:Aθ=0 vs. H1:Aθ6=0, where Ais 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 nis large. Then, the statistic: Q2=ˆ θTATAˆ ∑ˆ θAT−1Aˆ θ is distributed according to a Hotelling T-squared distribution. This distribution has 2 and ndegrees of freedom, where 2 is the dimension of the vector Aˆ θ . When nis large, Q2 is distributed according to a central chi-squared distribution with 2 degrees of freedom when the null hypothesis is true, i.e., Q2=ˆ ηTATAˆ ∑ˆ ηAT−1Aˆ η−−−→ n→∞χ2 2. (7) To calculate this test statistic, it is necessary to verify that s10m+s01m+r10m+r01m> 0. The global hypothesis test (1) can also be solved from the individual hypothesis test, i.e., H0 : Se1=Se2 and H0 : Sp1=Sp2 , each of which are independent of the α error. In this situation, the corresponding test statistics are: z=ˆ Se1−ˆ Se2 qˆ Varˆ Se1+ˆ Varˆ Se2−2ˆ Covˆ Se1,ˆ Se2 (8) and: z=ˆ Sp1−ˆ Sp2 qˆ Varˆ Sp1+ˆ Varˆ Sp2−2ˆ Covˆ Sp1,ˆ Sp2 . (9) Both test statistics have a normal standard distribution when the sample size nis 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 p1 and p2 be the p-values obtained in each individual hypothesis test and let us suppose that p1≤p2 ; then, the Holm method [9] consists of the following two steps: (1) If p1>α/2 , then none of the two null hypothesis H0 : Se1=Se2 and H0 : Sp1=Sp2 are rejected. If p1≤α/2 , then the null hypothesis corresponding to that hypothesis test is rejected and we go on to the next step. (2) If p2>α , then the corresponding null hypothesis is not rejected. If p2≤α , then the null hypothesis is rejected and the process ends.
Mathematics 2021,9, 2029 7 of 16 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 ( Se16=Se2 and/or Sp16=Sp2 ) when the null hypothesis is true ( Se1=Se2 and Sp1=Sp2 ). 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 H0 : Se1=Se2 and/or H0 : Sp1=Sp2 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 X1 and X2 , 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 pm , we considered the values 10%, 25%, and 50%. As values of the sensitivities ( Se11 , Se12 , Se21 and Se22 ) and specificities ( Sp11 , Sp12 , Sp21 and Sp22 ) in each pattern of the covariate, we took the values {0.70, 0.80, 0.90} . Then, from the values Sehm and Sphm , we calculated the maximum values of the covariances α1m and α0m , and as values of α1m and α0m , we took intermediate and high values, i.e., α1m=f Max{Se1m,Se2m}+1−f and: α0m=f Max{(1−Sp1m),(1−Sp2m)}+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 ˆ Sehm = 0), then that sample is discarded and another is generated in its place until Nsamples are obtained. 3.1. Type I Errors Tables 2and 3show the type I errors obtained for the four methods proposed in Section 2, considering different scenarios. Table 2shows some results for Seh= 0.90 and Sph={0.70, 0.80}(Seh>Sph) , and Table 3shows some results for Seh={0.70, 0.80} and Sph=0.90 (Seh<Sph).
Mathematics 2021,9, 2029 8 of 16 Table 2. Type I errors (in %) of different methods to simultaneously compare the sensitivities (Seh=0.90) and specificities (Sph={0.70, 0.80}) of two BDTs in the presence of a binary covariate. Se1= Se2= 0.90, Sp1= Sp2= 0.70, p1= 10%, p2= 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 nM1 M2 M3 M4 M1 M2 M3 M4 M1 M2 M3 M4 50 0.34 2.14 1.08 1.08 0.08 0.88 0.34 0.34 0 0 0 0 100 1.28 4.10 2.08 2.08 0.86 2.88 1.42 1.42 0 0.02 0 0 200 1.40 4.52 2.36 2.36 1.20 3.70 1.64 1.64 0.02 0.82 0.16 0.16 500 1.98 4.48 2.60 2.60 1.78 4.66 2.46 2.46 0.58 3.00 1.38 1.38 1000 2.30 5.24 2.74 2.78 1.82 4.82 2.38 2.38 0.88 3.26 1.48 1.48 2000 3.50 7.24 3.58 3.60 2.44 5.26 2.40 2.40 1.20 4.18 1.96 1.96 Se1= Se2= 0.90, Sp1= Sp2= 0.70, p1= 10% ,p2= 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 nM1 M2 M3 M4 M1 M2 M3 M4 M1 M2 M3 M4 50 0.58 2.42 1.26 1.26 0.10 1.02 0.22 0.22 0 0 0 0 100 1.20 4.08 1.86 1.86 0.50 2.88 1.16 1.16 0 0.04 0 0 200 1.76 4.40 2.22 2.22 1.16 3.64 1.58 1.58 0.04 0.68 0.14 0.14 500 2.44 4.98 2.42 2.42 1.60 4.20 1.82 1.82 0.64 3.08 1.20 1.20 1000 3.22 7.06 3.08 3.10 2.56 5.82 2.98 3.04 1.08 3.66 1.76 1.76 2000 4.20 8.16 4.22 4.28 3.26 7.14 3.26 3.32 1.76 4.48 2.06 2.06 Se1= Se2= 0.90, Sp1= Sp2= 0.80, p1= 10%, p2= 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 nM1 M2 M3 M4 M1 M2 M3 M4 M1 M2 M3 M4 50 0.24 1.38 0.58 0.58 0 0.45 0.05 0.05 0 0 0 0 100 0.92 3.30 1.68 1.68 0.40 2.15 0.75 0.75 0 0 0 0 200 1.14 4.24 1.90 1.90 0.75 2.75 1.15 1.15 0 0.30 0.05 0.05 500 1.76 4.68 2.36 2.36 1.40 3.75 1.85 1.85 0.25 2.25 0.70 0.70 1000 2.48 5.08 2.68 2.68 1.55 4.80 2.15 2.15 1.00 3.15 1.65 1.65 2000 3.28 6.22 3.22 3.22 2.80 6.45 3.20 3.20 1.75 3.95 2.35 2.35 Se1= Se2= 0.90, Sp1= Sp2= 0.80, p1= 10%, p2= 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 nM1 M2 M3 M4 M1 M2 M3 M4 M1 M2 M3 M4 50 0.32 1.78 0.66 0.66 0.04 0.74 0.22 0.22 0 0 0 0 100 1.22 3.62 1.84 1.84 0.42 2.40 0.84 0.84 0 0 0 0 200 1.52 4.48 2.04 2.04 1.08 3.50 1.46 1.46 0 0.48 0.02 0.02 500 2.40 5.28 2.66 2.66 1.70 4.54 2.22 2.22 0.32 2.02 0.56 0.56 1000 3.22 6.78 3.12 3.12 2.42 5.24 2.32 2.32 0.88 3.52 1.48 1.48 2000 3.74 8.10 3.88 3.88 3.56 7.30 3.80 3.86 1.64 4.52 2.28 2.28 M1: global hypothesis test. M2: individual test with α = 5%. M3: individual tests with Bonferroni method. M4: individual tests with Holm method.
Mathematics 2021,9, 2029 9 of 16 Table 3. Type I errors (in %) of different methods to simultaneously compare the sensitivities (Seh={0.70, 0.80}) and specificities (Sph=0.90) of two BDTs in the presence of a binary covariate. Se1= Se2= 0.70, Sp1= Sp2= 0.90, p1= 10%, p2= 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 nM1 M2 M3 M4 M1 M2 M3 M4 M1 M2 M3 M4 50 0.10 0.66 0.20 0.20 0 0.08 0 0 0 0 0 0 100 0.72 2.40 1.06 1.06 0.02 0.68 0.14 0.14 0 0 0 0 200 1.88 4.78 1.72 1.74 0.62 2.60 0.74 0.76 0.02 0.08 0.02 0.02 500 2.68 6.04 2.64 2.70 1.98 4.38 1.96 2.00 0.10 0.68 0.24 0.24 1000 3.88 8.64 4.00 4.04 3.14 7.26 3.30 3.36 0.80 2.54 1.10 1.10 2000 4.54 8.84 4.52 4.58 4.24 8.82 4.08 4.10 1.44 4.06 1.48 1.48 Se1= Se2= 0.70, Sp1= Sp2= 0.90, p1= 10%, p2= 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 nM1 M2 M3 M4 M1 M2 M3 M4 M1 M2 M3 M4 50 0 0.22 0.04 0.04 0 0 0 0 0 0 0 0 100 0.26 1.82 0.42 0.42 0.04 0.56 0.06 0.06 0 0 0 0 200 0.88 2.98 1.20 1.20 0.32 1.96 0.60 0.60 0 0 0 0 500 2.26 4.46 1.98 1.98 1.28 4.24 1.76 1.76 0.02 0.36 0.12 0.12 1000 3.18 6.68 3.18 3.22 1.98 4.92 2.08 2.08 0.38 1.72 0.66 0.66 2000 3.78 8.20 3.74 3.86 3.46 6.88 3.22 3.24 1.18 3.74 1.40 1.40 Se1= Se2= 0.80, Sp1= Sp2= 0.90, p1= 10%, p2= 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 nM1 M2 M3 M4 M1 M2 M3 M4 M1 M2 M3 M4 50 0.06 0.60 0.14 0.14 0 0.04 0.02 0.02 0 0 0 0 100 0.72 2.66 1.08 1.08 0.06 0.74 0.16 0.16 0 0 0 0 200 1.58 4.50 1.44 1.46 0.62 2.48 0.98 0.98 0 0.02 0 0 500 3.24 6.30 2.84 2.88 1.96 4.62 2.06 2.06 0.06 0.84 0.14 0.14 1000 3.62 8.12 3.66 3.76 2.78 6.58 2.76 2.86 0.54 2.30 0.88 0.88 2000 5.10 9.82 5.06 5.12 4.28 8.08 4.00 4.04 1.60 4.16 1.94 1.94 Se1= Se2= 0.80, Sp1= Sp2= 0.90, p1= 10%, p2= 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 nM1 M2 M3 M4 M1 M2 M3 M4 M1 M2 M3 M4 50 0 0.20 0.02 0.02 0 0 0 0 0 0 0 0 100 0.10 1.58 0.18 0.18 0.02 0.32 0.06 0.06 0 0 0 0 200 1.06 3.14 1.52 1.52 0.26 2.02 0.56 0.56 0 0 0 0 500 1.78 4.34 1.92 1.92 1.46 3.84 1.76 1.76 0.00 0.42 0.14 0.14 1000 2.44 6.02 2.62 2.64 2.06 4.64 2.10 2.10 0.26 1.68 0.58 0.58 2000 4.02 8.24 3.94 4.00 2.88 6.42 2.94 2.94 0.82 2.94 1.14 1.14 M1: global hypothesis test. M2: individual test with α = 5%. M3: individual tests with Bonferroni method. M4: individual tests with Holm method. 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 α1m and α0m 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
Mathematics 2021,9, 2029 16 of 16 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 l2(ω)(Equation (6)) can be written as: l2(ω)= 1 ∑ i,j=0 M ∑ m=1 xijm logφijm+ 1 ∑ i,j=0 M ∑ m=1 yijm logϕijm= M ∑ m=1 l2m, where: l2m= 1 ∑ i,j=0xijm logφijm+yijm logϕijm is the log-likelihood function in the mth covariate pattern. Then, the Fisher information matrix of function l2(ω)is: I2=Diag{I21, . . . , I2M} and, therefore: ∑ˆ ω=I−1 2=Diagn∑ˆ ω1, . . . ∑ˆ ωMo. 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. 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. [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. [CrossRef] [PubMed] 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. [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. [CrossRef] [PubMed] 7. Agresti, A. Categorical Data Analysis, 3rd ed.; Wiley: New York, NY, USA, 2013. 8. Bonferroni, C.E. Teoria statistica delle classi e calcolo delle probabilità.Pubbl. R Ist. Super. Sci. Econ. Commer. Firenze 1936 ,8, 3–62. 9. Holm, S. A simple sequential rejective multiple testing procedure. Scand. J. Stat. 1979,6, 65–70. 10. Hosmer, D.W.; Lemeshow, S. Applied Logistic Regression, 2nd ed.; Wiley: New York, NY, USA, 2000. 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. [CrossRef] [PubMed]