scieee AI-readable full text Open interactive document viewer

Robust consistent estimators for ROC curves with covariates

Bianco, Ana Maria; Boente Boente, Graciela; González Manteiga, Wenceslao

Abstract

The Receiver Operating Characteristic (ROC) curve is a useful tool to measure the classification capability of a continuous variable to assess the accuracy of a medical test that distinguishes between two conditions. Sometimes, covariates related to the diagnostic variable may increase the discriminating power of the ROC curve. Due to the lack of stability of classical ROC curves estimators to outliers, we introduce a procedure to obtain robust estimators in presence of covariates. The considered proposal focusses on a semiparametric approach which robustly fits a location-scale regression model to the diagnostic variable and considers robust adaptive empirical estimators of the regression residuals. The uniform consistency of the proposal is derived under mild assumptions. A Monte Carlo study is carried out to compare the performance of the robust proposed estimators with the classical ones both, in clean and contaminated samples. A real data set is also analysed.

Full text

Electronic Journal of Statistics Vol. 16 (2022) 4133–4161 ISSN: 1935-7524 https://doi.org/10.1214/22-EJS2042 Robust consistent estimators for ROC curves with covariates∗ Ana M. Bianco, Graciela Boente Facultad de Ciencias Exactas y Naturales, Universidad de Buenos Aires and CONICET, Argentina e-mail: [email protected];[email protected] and Wenceslao González–Manteiga Facultad de Matemática, Universidad de Santiago de Compostela, Spain e-mail: [email protected] Abstract: The Receiver Operating Characteristic (ROC) curve is a useful tool to measure the classification capability of a continuous variable to assess the accuracy of a medical test that distinguishes between two conditions. Sometimes, covariates related to the diagnostic variable may increase the discriminating power of the ROC curve. Due to the lack of stability of classical ROC curves estimators to outliers, we introduce a procedure to obtain robust estimators in presence of covariates. The considered proposal focusses on a semiparametric approach which robustly fits a location-scale regression model to the diagnostic variable and considers robust adaptive empirical estimators of the regression residuals. The uniform consistency of the proposal is derived under mild assumptions. A Monte Carlo study is carried out to compare the performance of the robust proposed estimators with the classical ones both, in clean and contaminated samples. A real data set is also analysed. MSC2020 subject classifications:Primary 62G35; secondary 62G05. Keywords and phrases: Covariates, robustness, ROC curves, parametric regression. Received November 2021. Contents 1 Introduction................................ 4134 2 Proposal.................................. 4137 2.1 Preliminaries ............................ 4137 2.2 Thegeneralprocedure....................... 4139 3 Consistencyresults............................ 4141 4 MonteCarlostudy............................ 4144 5 Analysisofrealdataset......................... 4148 ∗This research was partially supported by Grants pict 2018-00740 from anpcyt and 20020170100022BA from the Universidad de Buenos Aires, Argentina and also by the Spanish Projects MTM2016-76969P and PID2020-116587GB-I00 from the from the Ministry of Science and Innovation (MCIN/ AEI/FEDER, UE), Spain. 4133 4134 A. M. Bianco et al. 6 Finalremarks............................... 4151 A Appendix ................................. 4152 A.1 Proof of Theorem 1......................... 4152 A.2 Proof of Propositions 1and 2................... 4155 Acknowledgments .............................. 4160 Supplementary Material . . . . . . . . . . . . . . . . . . . . . . . . . . . 4160 References................................... 4160 1. Introduction The Receiver Operating Characteristic (ROC) curve is a useful tool to size up the capability of a continuous variable or the accuracy of a pharmaceutical or medical test to distinguish between two conditions. ROC curves are a very well known technique in medical studies where a continuous variable or marker (biomarker) is used to diagnose a disease or to evaluate the progression of a disease. The use of ROC curves has become more and more popular in medicine from the early 60’s due to their applications in classification or discrimination (see Gonçalves et al.,2014, for a historical note and Krzanowski and Hand, 2009 for further details). Thinking of this scenario, we assume that we deal with two populations, henceforth, identified as diseased (D) and healthy (H)and that a continuous score usually called biomarker or diagnostic variable,Y,is considered for the assignment purpose and whose rule is based on a cut–off value c. Thus, according to this assignment rule, an individual is classified as diseased if Y≥cand as healthy when Y<c.LetFDbe the distribution of the marker on the diseased population and FHthe distribution of Yin the healthy one. From now on, for practical reasons, we denote as YD∼FDthe marker in the diseased population and YH∼FHthe score in the healthy one. It is worth mentioning that the decision of classifying an individual as diseased when the biomarker is larger or equal than c, is a natural one when YDis stochastically greater than YH, that is, when P(YD≤c)≤P(YH≤c) for all c. It is clear that the classification errors depend on the threshold c. Therefore, it becomes of interest to study the pairs {(1−FH(c),1−FD(c)),c∈R}, which describe a geometrical object called ROC curve that reflects the discriminatory capability of the biomarker. This suggests a different parametrization of this curve in terms of the false positive rate, 1 −FH(c), leading to {(p, 1−FD(F−1 H(1 −p))),p∈(0,1)}and therefore, to ROC(p)=1−FD(F−1 H(1 −p))),p∈(0,1). In this manner, the ROC curve is a complete picture of the performance of the assignment procedure over all possible threshold values. As it is well known, when YDis stochastically greater than YH, then ROC(p)≥p, for any 0 <p<1 and the discriminatory capability of the biomarker may be reflected on how far above from the identity function is the ROC curve. In practical situations, the discriminatory effectiveness of the biomarker may be improved by several factors. Thus, when for each individual there is additional information contained in measured covariates, it is sensible to include them in the ROC analysis. Pepe (2003) illustrates how the discriminatory capability of Robust ROC curves with covariates 4135 a test is improved by the presence of covariates, through several examples. For an overview on this topic, we refer to Pardo-Fernández et al. (2014). In brief, we may say that the information registered all along the covariates may impact the discrimination capability of the marker. In this situation, in order to have a deeper comprehension of the effect of the covariates, it would be advisable to incorporate to the ROC curve the additional information they provide instead of considering a joint ROC curve, that may lead to oversimplification. This issue can be accomplished in different ways. In the direct methodology, the ROC curve is directly regressed onto the covariates by means of a generalized linear model. Among others, Alonzo and Pepe (2002), Pepe (2003) and Cai (2004) follow this approach. In contrast, in the induced methodology, the markers distribution in each population is modelled separately in terms of the covariates and just after, the induced ROC curve is computed. The papers by Pepe (1998), Faraggi (2003), González-Manteiga et al. (2011) and Rodríguez-Álvarez et al. (2011a)gointhis direction, while Rodríguez-Álvarez et al. (2011b) perform a comparative study of the direct and induced methodologies. From now on, we denote as XDand XHthe covariates for the disease and healthy populations and we assume that they have the same dimension. In such case, for any xin the common support of XDand XH, the conditional ROC curve is defined as ROCx(p)=1−FD(F−1 H(1 −p|x)|x),(1) where Fj(·|x) stands for conditional distribution of Yj|Xj=x,j=H,D.Inthis paper, we focus on the induced approach through a general regression model. The general methodology to estimate the conditional ROC curve consists in a plug–in procedure, where estimators of the regression and of the variance functions together with empirical distribution and quantile function estimators based on the residuals are plugged into the general expression of the conditional ROCcurve.Pepe(1997,1998,2003), Faraggi (2003), González-Manteiga et al. (2011) propose estimators that implement these ideas. Since most of these estimators are based on classical least squares procedures or local averages, they may be influenced by anomalous data or small deviations from the model assumptions. The bi–normal model, in which both populations are assumed to be normal, is a very popular choice to fit a ROC curve and one justification for its broad use is its robustness, meaning that the estimator based on a bi– normal model produces valid inferences in circumstances where the observations are not normal. In fact, Gonçalves et al. (2014) discuss the scope of the so–called robustness in the ROC curve scenario. Walsh (1997) performs a simulation study that shows that the bi–normal estimator is affected by model misspecifications and by the location of the decision thresholds. In this paper, we focus on robustness, in the sense, that we seek for procedures resistant to deviations from the underlying model and highly efficient when this central model holds. During the last decades, robust statistics has pursued the aim of developing procedures that enable reliable inference results, even if small deviations from the model assumptions occur or in the presence of a moderate percentage of outliers. Even when these efforts have been sustained over time across different statistical areas, up to our knowledge, ROC 4136 A. M. Bianco et al. Fig 1. Estimated ROC surfaces for the Diabetes Data using Age (X) as covariate: (a) Classical estimator, (b) Classical estimator without the detected outliers and (c) Naive estimator. curves have received little attention from this robustness point of view. When no covariates are available, robust estimators of the area under the ROC curve were given in Greco and Ventura (2011) assuming that the distribution functions are known up to a finite–dimensional parameter (see also Farcomeni and Ventura, 2012). In this sense, when covariates are recorded to improve the discrimination power of the biomarker, the main contribution of our paper is to bridge the gap between ROC curves and robustness. We achieve this goal by fitting a location-scale regression model to the diagnostic variable and considering weighted empirical estimators of the regression residuals distributions. In this respect, our proposal is semiparametric since the errors distribution is not assumed to be known, for example, as in the bi–normal model and may be easily implemented in Rthrough the functions available in the library robustbase. Our motivating example consists of the real dataset of a marker for diabetes previously analysed in Faraggi (2003) and Pardo-Fernández et al. (2014), in which we add to their analysis a robust perspective focussing on the potential effect of influential data. The observations, that come from a population-based pilot survey of diabetes mellitus in Cairo, Egypt, consist of postprandial blood glucose measurements (Y) from a fingerstick in 286 subjects who were divided into healthy (198) and diseased (88) groups according to gold standard criteria of the World Health Organization (1985). It is believed that the aging process may be associated with resistance or relative insulin deficiency among healthy people, therefore postprandial fingerstick glucose levels would be expected to be higher for older persons who do not have diabetes. According to this belief, Smith and Thompson (1996) adjust the ROC curve analysis for covariate information using age (X). The obtained ROC curve of the transformed biomarker is given in Figure 1together with the ROC curve obtained after removing the 6 outliers detected in the healthy sample through a robust regression fit. Figure 1 also displays the ROC curve built using the naive approach of using robust regression estimators combined with the usual empirical distribution and quantile function estimators based on the residuals. These plots illustrate that the use of robust regression and variance estimators are not enough to protect the es- Robust ROC curves with covariates 4137 Fig 2. Estimated ROC for the Diabetes Data for three values of pusing Age (X) as covariate. The solid red line corresponds to the classical estimator, the dark red dotted-dashed one to the classical estimator without the detected outliers and the dashed grey to the naive one. timation of the ROC curve from the influence of atypical data. This effect may be explained by the fact that large residuals are still present when empirical distribution estimators are computed affecting, in particular, extreme quantiles and producing a distorted ROC surface for values of pclose to 0 and 1, which is better appreciated in Figure 2. This motivates the need of defining appropriate robust estimators of the ROC curve. In the rest of the paper we will introduce a robust proposal and we will study some of its properties. The paper is organized as follows. Section 2reviews some general concepts regarding the conditional ROC curve and introduces the robust proposal to estimate the ROC curve. Section 3presents some consistency results. In Section 4, a numerical study is conducted to examine the small sample properties of the proposed procedures under a non–linear regression model, while the results under a linear model are given in the supplementary file available online. The advantages of the proposed methodology are illustrated in Section 5on a real data set, while some final comments are presented in Section 6. Assumptions and proofs of the main results are relegated to the Appendix, while the convergence of a proposal to choose the tuning constants involved is studied in the supplementary file (Bianco et al.,2022). 2. Proposal 2.1. Preliminaries In this section, we recall the approach considered to model the induced ROC curve when covariates are measured. For that purpose, denote as YDand XD the biomarker and the covariates measured in the diseased population and as YHand XHthe corresponding ones in the healthy individuals. Even though in many situations the same covariates are measured in both populations, in this paper, we will only assume that XDand XHhave the same dimension and we will call Stheir common support. 4138 A. M. Bianco et al. A general way to include covariates is through a general location–scale regression model which, for simplicity of presentation, we assume homoscedastic in both populations, that is, YD=μ0,D(XD)+σ0,D D,(2) YH=μ0,H(XH)+σ0,H H,(3) where, for j=D,H,μ0,j is the true regression function and σ0,j corresponds to the model dispersion, respectively. It is also assumed that the errors j∼Gj are independent of Xj,forj=D,H and have scale 1 to properly identify σ0,j. Furthermore, to identify the regression function in the classical framework it is assumed that Ej=0,forj=D,H. Instead, in the robust setting it is usual to avoid the existence of moments. For that reason, to ensure consistency of the robust estimators to the target regression function μ0,j, it is standard to assume that Gjhas a symmetric distribution. Otherwise, Fisher–consistency of the related regression functionals should be required. It is worth noticing that since the errors and the covariates are independent, for a given x∈S,wehave that FD(y|x)=FYD|XD(y|x)=P(YD≤y|XD=x) =P(μ0,D(XD)+σ0,D D≤y|XD=x)=GDy−μ0,D(x) σ0,D . Analogously, we get that the conditional distribution in the healthy distribution satisfies FH(y|x)=FYH|XH(y|x)=GHy−μ0,H (x) σ0,H . As a consequence, the quantiles of the conditional distributions are related to those of the errors through F−1 j(p|x)=σ0,j G−1 j(p)+μ0,j(x), for j=D,H, where G−1 j(·) denotes the quantile function of the errors j. Thus, the conditional ROC curve given x∈Sdefined in (1) can be computed as ROCx(p)=1−GDμ0,H (x)−μ0,D(x) σ0,D +σ0,H σ0,D G−1 H(1 −p).(4) One advantage of this approach is that it enables a very general modelling of the regression functions μ0,j,forj=D,H, since this task can be accomplished from different perspectives. This means that according to the information about the relationship between the biomarker and the covariates and the user’s preferences, the regression functions may be modelled parametrically, nonparametrically or partly parametrically. Different summary measures of the ROC curve are useful to sum up particular features of the curve. One of the most popular indices is the conditional area under the curve (AUCx), which is computed as AUCx=1 0ROCx(p)dp. Suppose that we have a sample from the diseased population, (yD,i,xD,i), 1 ≤ i≤nD, that verifies model (2) and one from the healthy population, (yH,i,xH,i), Robust ROC curves with covariates 4139 1≤i≤nH, verifying model (3). Furthermore, assume that the samples are independent from each other. As mentioned in the Introduction, expression (4) of the conditional ROC curve suggests a natural estimation procedure which may be described through the following steps Step 1. For j=D,H and from the sample (yj,1,xj,1),...,(yj,nj,xj,nj) estimate μ0,j(x)andσ0,j. Denote the resulting estimators by μj(x)and σj,forj=D,H. Step 2. Compute for each sample the standardized regression residuals rH,i =yH,i −μH(xH,i) σH and rD,i =yD,i −μD(xD,i) σD . On the basis of these residuals, the empirical distribution function estimator can be computed as  Gj,emp(r)=(1/nj)nj i=1 Irj,i≤r,forj= D,H, leading in the healthy population, to the quantile function estimator  G−1 H,emp. Step 3. Plug–in the estimators computed in the first two steps into equation (4) to obtain the estimated conditional ROC function  ROCx(p)=1− GD,emp μH(x)−μD(x) σD +σH σD G−1 H,emp(1 −p). 2.2. The general procedure From now on, we consider the regression models given in (2)and(3), however the arguments given below may be easily extended to the heteroscedastic case. Our goal is to introduce a procedure to get reliable and stable ROCxestimators, even when a moderate percentage of outliers arise in one sample or in both of them. As it is well known, the regression and scale estimators computed in Step 1 may be affected by outliers if classical methods, such as least squares estimators, are considered. A naive approach could be to compute robust estimators of μ0,j(x)andσ0,j,forj=D,H, instead of classical ones. However, as shown with the diabetes data set considered in the Introduction, this is not enough to provide final robust estimators of the ROC curve, since the presence of large residuals may still affect Steps 2 and 3. In fact, even when robust estimators are considered for the estimation of the regression and variance functions, large residuals would influence the classical empirical distribution and quantile function estimators wasting the efforts made in the first step to get robustness. Note that large values of |rj,i|suggest that the corresponding pairs (yj,i,xj,i) may be outliers. In that case, under a normal error model, it seems wise to consider as atypical those points whose residuals are larger than a certain cut–off value c, that is, such that |rj,i|>c. Typically, cis chosen as 2.5 by taking the standard normal distribution as a benchmark. For that reason, for j=D,H, once the residuals rj,i from a robust fit have been computed, we have to downweight large residual values, as it is done when computing robust regression 4140 A. M. Bianco et al. estimators. Unlike the empirical distribution estimators, where all the observations have the same weight, downweighting in the second step atypical points, i.e., those values that lie far away from the bulk of the data, may result in a more resistant procedure. More precisely, in Step 2,forj=D,H, we need to consider a weighted empirical distribution defined as:  Gj(r)= 1 nj =1 wj, nj  i=1 wj,iIrj,i≤rwhere wj,i =wrj,i c,(5) where w:R→[0,1] is an even weight function, non-increasing in [0,+∞), such that w(0) = 1, w(u)>0for0<u<1andw(u)=0foru≥1. Further assumptions on the weight function will be required in Propositions 1and 2to ensure consistency of the resulting weighted empirical distribution. The fact that w(u)=0foru≥1 ensures that wj,i =0when|rj,i|is larger than the selected cut–off value c, so, observations with large residuals will be completely eliminated in the weighted estimators ensuring robustness of the final ROC curve. It is worth noting that beneath this criterion to downweight large residuals lays the idea that the errors distribution Gjis symmetric. If the practitioner suspects that a skewed distribution underlies, another kind of weights, such as asymmetric ones, may be preferable. At this stage, the choice of the constant cdoes matter and is a keypoint. Recall that when considering MM-estimators in linear or non–linear regression models, the tuning constant is selected to attain a given efficiency ensuring at the same time robustness. However, in our setting, it is quite intuitive that for a fixed cut–off value  Gj(r) will not converge to Gjbut to Ewj cIj≤r Ewj c, leading to unconsistent estimators of the distribution functions Gj,j=D,H, and of the ROC function (see Propositions 1and 2below). Therefore, cut–off values cnj, increasing to infinite but at the same time, ensuring good robustness properties for small samples are needed. We refer to Section S.1 in the supplementary file for a description of a possible procedure to select the cut–off values. Taking these ideas into account, we propose the following stepwise procedure: Step 1R. Estimate μ0,H (x), σ0,H ,μ0,D(x), σ0,D in a robust fashion from the samples (yH,1,xH,1),...,(yH,nH,xH,nH)and(yD,1,xD,1),..., (yD,nD,xD,nD), respectively. Denote the resulting estimators by μH(x), σH,μD(x)andσD. Step 2R. Compute for each sample the standardized regression residuals rH,i =yH,i −μH(xH,i) σH and rD,i =yD,i −μD(xD,i) σD . Robust ROC curves with covariates 4141 From these residuals, evaluate robust adaptive estimators of the distribution and quantile functions, denoted,  GDand  G−1 H, respectively as in (5), using an unbounded increasing sequence of cut–off values cnj,j=D,H. Step 3R. Plug–in the robust estimators computed in the first two steps into equation (4) to obtain  ROCx(p)=1− GDμH(x)−μD(x) σD +σH σD G−1 H(1 −p). Regarding Step 1R, the considered regression models (2)and(3)maybe either parametric, nonparametric or semiparametric. In each case, suitable robust estimators must be used. In particular, in the parametric case, linear or non–linear models may be adequate. To illustrate, assume that, for j=D,H, the observations satisfy the non–linear regression model yj,i =fj(xj,i,β 0,j)+σ0,jj,i ,i=1...n j,(6) with β0,j ∈Rq,σ0,j the scale parameter and fja known function. Note that the dimension of the regression parameter β0,j may be equal or not to that of the covariates. The errors j,i are independent and identically distributed (i.i.d.) with unknown distribution Gjand independent of the covariates xj,i.Insuch setting, the MM-estimators introduced in Yohai (1987) are a recommended option for the linear model, while, under a general non–linear regression model, the weighted MM-estimators presented in Bianco and Spano (2019)maybe used. The challenge in Step 2R is to implement a version of the empirical distribution with adaptive weights ensuring at the same time consistency under the central model and robustness. As mentioned above, our proposal may be easily implemented when one or both regression models are heteroscedastic. In this case, if the scale function is modelled in terms of the covariates, estimators of the scale function need to be computed in Step 1R. Then, in Step 2R the residuals rj,i,forj=Dand/or H, are obtained using σj(xj,i) instead of σj. At this point different approaches may be followed. In the nonparametric setting, the local median of the absolute deviations from the median (local mad) considered in Boente and Fraiman (1989) provides a robust consistent scale estimator. Instead, when the scale function is parametrically modelled, the robust estimators that have been studied in Carroll and Ruppert (1982) and Bianco et al. (2000), under an heteroscedatic linear regression model, may be implemented. The results in Theorem 1can be extended to the heteroscedastic setting by requiring to the true scale function σj(x) to be bounded and bounded from below on any compact set K⊂Sand to the estimators σj(x) consistency assumptions analogous to those stated for μj(x)inA4 and A5. 3. Consistency results In this section, we derive uniform consistency results for the ROC curve estimators. Theorem 1and Corollary 1recall on the uniform consistency of the 4148 A. M. Bianco et al. Fig 4. Functional boxplots of  AUCxobtained with the classical and robust estimators for n= 100 with clean samples and under 5% and 10% of contamination with level shift S=10, under the non–linear model (10)and (11). The green line corresponds to the true AUCxand the dotted red lines to the outlying curves detected by the functional boxplot. 5. Analysis of real data set In this section, we illustrate the benefits of the robust proposed methodology by means of the diabetes real dataset described in the Introduction. Robust ROC curves with covariates 4149 Fig 5. Functional boxplots of  AUCxobtained with the classical and robust estimators for n= 200 with clean samples and under 5% and 10% of contamination with level shift S=10, under the non–linear model (10)and (11). The green line corresponds to the true AUCxand the dotted red lines to the outlying curves detected by the functional boxplot. Following the analysis given in Faraggi (2003), we transform the marker from both populations using power function f(t)=−t−1/2. After this, we assume a linear regression model in each population for the transformed marker y, i.e., 4150 A. M. Bianco et al. Fig 6. The left panel corresponds to the boxplots of the residuals obtained after a robust fit for healthy sample, while the central and right panels to the scatter plots for the healthy and diseased samples. The red points correspond to the detected outliers. yD,i =βD,1+βD,2xD,i +D,i ,1≤i≤88 , yH,i =βH,1+βH,2xH,i +H,i ,1≤i≤198 and we compute the classical and robust estimators of the conditional ROC curves, denoted  ROCx,cl and  ROCx, respectively. For the robust procedure, we compute MM-regression estimators using the bi-square loss function and an initial S-estimator with 50% breakdown point. The tuning constant in the M-step was set equal to 3.444 to ensure an 85% of efficiency with respect to the least squares estimator. In Step 2R we choose w(t)=I[−1,1](t), η=2.5and Gj,0= Φ, as in the simulation study. Based on the residuals boxplots of a robust fit, 6 outliers were detected in the healthy sample, labelled as 37, 78, 125, 137, 141 and 150, see the left panel of Figure 6. Note that Figures 1and 2illustrate the damaging effect that these outliers have on both the classical and naive estimates of the ROC surface. The filled red points on the central panel of Figure 6represent the atypical observations encountered in the healthy sample which correspond to vertical outliers. After removing them, the classical estimator of the conditional ROC curves is recomputed with the remaining points, namely  ROC(−6) x,cl. The upper panel of Figure 7displays the estimated surfaces with these three procedures using equidistant grids of points of size 29 and 28 in pand x, respectively, p∈[0.01,0.99] and x∈[20,87.5]. In order to facilitate the comparison between the estimated surfaces, the lower panel in Figure 7shows the differences between these estimators. This Figure makes evident that the robust estimator and the classical one when it is computed without the outliers are very similar all along the studied range, while the classical estimator computed from the whole sample shows a different pattern, especially for large values of age (see the left panel of Figure 7). Robust ROC curves with covariates 4151 Fig 7. Diabetes Data: (a) Estimated ROC surfaces and (b) Difference between the estimated ROC surfaces. 6. Final remarks The ROC curve is a useful graphical tool that measures the discriminating power of a biomarker to distinguish between two conditions or classes. When the practitioner is able to measure covariates related to the diagnostic variable which can increase the discriminating power, it is sensible to incorporate them in the analysis. To have a deeper comprehension of the effect of the covariates, it would be advisable to incorporate the covariates information to the ROC analysis instead of considering the marginal ROC curve. Conditional ROC curves may be easily estimated using a plug–in procedure. However, the use of classical regression estimators and empirical distribution and quantile functions may lead to estimates which may breakdown in the presence of a small amount of atypical data, as it is illustrated in our numerical experiment. In this paper, we introduce a procedure to robustly estimate the conditional ROC curve. The methodology combines robust regression estimators with a weighted empirical distribution function which downweights the effect of large residuals. It is worth mentioning that our proposal may be easily implemented in Rusing the function weighted.fractile to compute the quantiles of the robust adaptive distribution function estimators and any function allowing to compute 4152 A. M. Bianco et al. robust estimators of the regression functions and scale parameters. When a linear model is assumed, robust MM-estimators are obtained through the function lmrob of the library robustbase which, by default, uses a bi-square loss function and an initial S-estimator with 50% breakdown point. Furthermore, when fitting a nonlinear model robust MM-estimators may be implemented through the function nlrob. When considering more complex models, such as partial linear or partial additive models, the function lmrob also allows an easy implementation of the estimators when B-splines are used to approximate the nonparametric components, see for instance, the proposals studied in Boente and Martínez (2021)orinBoenteet al. (2020) who also considered the case of asymmetric log–Gamma errors. We prove that the estimators are uniformly strongly consistent under standard regularity conditions when the sequence of cut-off parameters increases to infinity. A simulation study shows that our proposed estimators have good robustness and finite-sample statistical properties. Even though our numerical studies focus on a parametric regression approach, it should be mentioned that our proposal could also be implemented when considering nonparametric or partly parametric regression models simply combining a robust fit with the weighted empirical procedure. Using similar arguments to those given in Boente et al. (2020) or Boente and Martínez (2021), the consistency results stated in Propositions 1and 2may be extended to the case in which the biomarker is fitted by means of a partial linear or partial additive regression model and B- splines combined with MM-estimators are used in the first step. This interesting topic and as well as the extension to functional regressors will be object of future research. Appendix A: Appendix A.1. Proof of Theorem 1 To derive consistency results for the ROC curve, we will need the following assumptions on the errors distributions and on their estimates: A1 GH:R→(0,1) has an associated density gHsuch that gH(y)>0, for all y∈R. A2 GD:R→(0,1) is continuous. A3  Gj−Gj∞ a.s. −→ 0, j=D,H. A4 For each fixed x,|μj(x)−μ0,j(x)|a.s. −→ 0, j=D,H. A5 For any compact set K⊂S,sup x∈K |μj(x)−μ0,j(x)|a.s. −→ 0, j=D,H. A6 The regression functions μ0,j are such that, for any compact set K, supx∈K |μ0,j(x)|=Aj<∞. Remark 1.If we are dealing with parametric regression models for j=D,H, i.e., when μ0,j(x)=fj(x,β 0,j)and βjand σjstand for robust consistent estimators Robust ROC curves with covariates 4153 of β0,j and σ2 0,j, respectively, the estimator of the ROC curve equals  ROCx(p)=1− GDfH(x, βH)−fD(x, βD) σD +σH σD G−1 H(1 −p). In this framework, conditions under which A3 holds for the linear model fj(x,β 0,j)=xtβ0,j or more generally, for a non–linear model are given in Propositions 1and 2. On the other hand, A4 to A6 hold if the non–linear regression functions satisfy A7 For each fixed x, the regression functions fj(x,b) are continuous in b. A8 The functions fjare such that supx∈K |fj(x,β n)−fj(x,β 0,j)|→0and supx∈K |fj(x,β j)|=Aj<∞, for any compact set Kand any sequence βn→β0,j. In particular, these assumptions hold if the regression model is a linear one.  ProofofTheorem1.We begin by proving (i). Using assumption A3 for j=H and the continuity of the quantile functionals when A1 holds, we get that, for the healthy subjects,  G−1 H(p)a.s. −→ G−1 H(p), for each 0 <p<1. To avoid burden notation denote as  Δ(x,p)=μH(x)−μD(x) σD +σH σD G−1 H(1 −p), Δ(x,p)=μ0,H (x)−μ0,D(x) σ0,D +σ0,H σ0,D G−1 H(1 −p). Note that the consistency of σjand A4 together with the fact that  G−1 H(p)a.s. −→ G−1 H(p), entail that for each fixed pand x, Δ(x,p)a.s. −→ Δ(x,p). Therefore, we have that, | ROCx(p)−ROCx(p)|= GD Δ(x,p)−GD(Δ(x,p)) ≤ GD Δ(x,p)−GD Δ(x,p)+GD Δ(x,p)−GD(Δ(x,p)) ≤   GD−GD  ∞+GD Δ(x,p)−GD(Δ(x,p)) which together with the continuity of GDlead to  ROCx(p)a.s. −→ ROCx(p), for each fixed xand 0 <p<1. Note that for each fixed x,ROC x(p) satisfies the conditions in Lemma S.1 in the supplementary file, so sup0<p<1| ROCx(p)− ROCx(p)|a.s. −→ 0. (ii) Using that  Δ(x,p)−Δ(x,p)|≤ 1 σD {|μH(x)−μ0,H (x)|+|μD(x)−μ0,D(x)|} + 1 σD −1 σ0,D |μ0,H (x)−μ0,D(x)|+σH σD G−1 H(1 −p)−G−1 H(1 −p) 4154 A. M. Bianco et al. +|G−1 H(1 −p)|σH σD −σ0,H σ0,D , assumption A6, the consistency of σjand the uniform consistency of μj,weget easily that supx∈K  Δ(x,p)−Δ(x,p)a.s. −→ 0. Hence, the inequality sup x∈K | ROCx(p)−ROCx(p)|≤   GD−GD  ∞+gD∞sup x∈K  Δ(x,p)−Δ(x,p) leads to supx∈K | ROCx(p)−ROCx(p)|a.s. −→ 0. Denote  B=sup δ<p<1−δsupx∈K | ROCx(p)−ROCx(p)|. Then, after some algebra we get that  B≤5 =1  Bwhere  B1= GD−GD∞,  B2=gD∞ 1 σD −1 σ0,D (AH+AD),  B3=gD∞ 1 σD sup x∈K {|μH(x)−μ0,H (x)|+|μD(x)−μ0,D(x)|} ,  B4=σH σD sup δ<p<1−δ G−1 H(1 −p)−G−1 H(1 −p),  B5=sup δ<p<1−δ |G−1 H(1 −p)|σH σD −σ0,H σ0,D . Assumptions A1 to A3 together with A5 and the consistency of σjentail that  B a.s. −→ 0, for =1,2,3,5. Note that  G−1 His a non–decreasing function. Besides, using that A1 entails that GHis continuous and strictly increasing, we immediately obtain that the quantile function G−1 H, which in this case equals the inverse of GH, is also strictly increasing and uniformly continuous over the compact interval [δ, 1−δ]. Hence, taking into account that  G−1 H(p)a.s. −→ G−1 H(p), for each 0 <p<1, analogous arguments to those considered in the proof of Lemma S.1 in the supplementary file when bounding supa≤t≤b|Fn(t)−F(t)| allow to derive that supδ≤p≤1−δ G−1 H(1 −p)−G−1 H(1 −p)a.s. −→ 0, concluding the proof of (ii). We now proceed to derive (iii). Let >0befixedandchoose0<η<1such that, supx∈K ROCx(η)</6andsup x∈K(1 −ROCx(1 −η)) </6. Denote as  R(η)= sup η<p<1−η sup x∈K | ROCx(p)−ROCx(p)|,  R1(η)=sup p≤η sup x∈K | ROCx(p)−ROCx(p)|,  R2(η)= sup 1−η≤p sup x∈K | ROCx(p)−ROCx(p)|. Hence, sup0<p<1supx∈K | ROCx(p)−ROCx(p)|≤  R(η)+  R1(η)+  R2(η), where  R(η)a.s. −→ 0 from (ii). Besides, using that ROCx(p) is a distribution function and Robust ROC curves with covariates 4155  ROCx(p) is non-decreasing in p,wegetthatforanyp≤η,x∈K,| ROCx(p)− ROCx(p)|≤max  ROCx(η),ROCx(η),so  R1(η)≤sup x∈K max  ROCx(η),ROCx(η)= C1(η). Similarly, we obtain that  R2(η)≤sup x∈K max 1− ROCx(1 −η),1−ROCx(1 −η)= C2(η). Taking into account that supx∈K ROCx(η)<and supx∈K(1 −ROCx(1 − η)) <and that for any fixed 0 <p<1, supx∈K | ROCx(p)−ROCx(p)|a.s. −→ 0, we conclude that there exists Nsuch that P(N)=0andforω/∈N, R(η)→0,  C1(η)→supx∈K ROCx(η)</6and  C2(η)→supx∈K 1−ROCx(1 −η)</6. Hence, for nHand nDlarge enough, we obtain that  R(η)</3,  C(η)</3, for =1,2 which leads to sup0<p<1supx∈K | ROCx(p)−ROCx(p)|≤, concluding the proof.  A.2. Proof of Propositions 1and 2 The following assumptions are needed to show that  Gj−Gj∞ a.s. −→ 0 under a linear model C1 The weight function w:R→[0,1] is even, non-increasing on [0,+∞), continuous, w(0) = 1, w(u)>0for0<u<1. C2 Gjis a continuous distribution function. C3 The estimators  βjand σjare such that  βj a.s. −→ β0,j and σj a.s. −→ σ0,j. The following Lemmas are needed to derive Propositions 1and 2, their proof can be found in the supplementary file. Lemma 1. Assume that either w(t)=I[−1,1](t)or wsatisfies C1.Letsbe a fixed real number and define the class of functions F={fθ, κ,ν(u, x)=wν(u−xtθ)Iu−xtθ≤κs for (θ,κ,ν)∈Rp×R≥0×R≥0}. Then, we have that supf∈F |Pnjf−Pf|a.s. −→ 0, where we use the standard notation in empirical processes, i.e., Pnjf=(1/nj)nj i=1 f(uj,i,xj,i)and Pf = Ef(Uj,Xj),withuj,i =σ0,jj,i and Uj=σ0,jj,forj=D, H. Denote ν0=1/(c0σ0), where we understand that if c0=∞,ν0= 0. Furthermore, let J0be a compact interval with non–empty interior, such that ν0∈J 0. To provide a general framework to deal with non–linear models, we consider the assumptions C4 Gjhas a bounded density gj. 4156 A. M. Bianco et al. C5 fj(x,β) is a continuous function of βfor each x. Furthermore, for each x, supβ−β0,j ≤1|fj(x,β)|∈L1(Pj). It is clear that C4 entails C2. Lemma 2is the non–linear counterpart of Lemma 1. Note that a bounded density is needed when a general non–linear model is considered, as well as a continuous weight function. Lemma 2. Assume that the observations (yj,i,xj,i),1≤i≤nj, satisfy the non–linear regression model (6).Letsbe a fixed real number and define the class of functions G={gβ, σ, ν(y,x)=w(ν(y−f(x,β))) Iy−f(x,β)≤σs for (β,σ,ν)∈V 0×I0×J0}. Under C1,C4 and C5, we have that supg∈G |Pnjg−Pg|a.s. −→ 0,wherePg = Eg(Yj,Xj)and Pnjg=(1/nj)nj i=1 g(yj,i,xj,i). Proof of Proposition 1.When cj,0=∞,usingthatGjis a bounded, monotone and continuous function and that  Gjismonotone,accordingtoLemmaS.1in the supplementary file, it will be enough to show that for each s∈R, Gj(s)a.s. −→ Gj(s). On the other hand, when cj,0<∞, standard arguments imply that F(s)=hj,0(cj,0,s)/hj,∞(cj,0) is a bounded, monotone and continuous function of sand the uniform convergence also follows from the pointwise one. To avoid burden notation, we define uias ui=σ0,jj,i and U=σ0,jj.When there is no confusion, we will omit the subscript j. Hence, for instance, X,σ0,j,  β,σ,cn,n,h∞and h0will stand for Xj,σ0, βj,σj,cnj,nj,hj,∞and hj,0, respectively. Denote as ν=1/(cnσ), ν0=1/(c0σ0), where we understand that if c0= +∞,ν0=0.Thenνa.s. −→ ν0. We will begin by showing that for each fixed real number s,wehavethat 1 n n  i=1 wiI(ri≤s)a.s. −→ h0(c0,s)=⎧ ⎨ ⎩ EGjwj c0Ij≤sif c0<∞ EGjIj≤s=Gj(s)ifc0=∞. (A.1) For that purpose and noting that ri=(ui−xt iθ)/σwith θ= β−β0, define the class of functions F={fθ, κ,ν(u, x)=wν(u−xtθ)Iu−xtθ≤κs for (θ,κ, ν)∈Rp×R≥0×R≥0}. Lemma 1entails that supf∈F |Pnf−Pf|a.s. −→ 0. Then, using that Pnfθ, σ, ν= (1/n)n i=1 wiI(ri≤s), we obtain that 1 n n  i=1 wiI(ri≤s)−Pf θ, σ, ν a.s. −→ 0. It remains to show that Pf θ, σ, ν a.s. −→ Pf0,σ 0,ν 0=h0(c0,s), which will follow if we derive that An=Pf θ, σ, ν−Ew(ν0U)IU−Xtθ≤σs a.s. −→ 0 (A.2) Robust ROC curves with covariates 4157 Bn=Ew(ν0U)IU−Xtθ≤σs −h0(c0,s)a.s. −→ 0.(A.3) We begin by considering the situation where wsatisfies C1. Noting that |An|=Ewν(U−Xtθ)−w(ν0U)IU−Xtθ≤σs  ≤Ewν(U−Xtθ)−w(ν0U), using the Dominated Convergence Theorem, the continuity of wand the fact that νa.s. −→ ν0and θa.s. −→ 0, we obtain that An a.s. −→ 0, concluding the proof of (A.2). When w=I[−1,1],wehavethat wν(u−xtθ)−w(ν0u)=Iν(u−xtθ)≤1I−1≤ν(u−xtθ)−Iν0u≤1I−1≤ν0u =Iν(u−xtθ)≤1I−1≤ν(u−xtθ)−I−1≤ν0u −Iν0u≤1−Iν(u−xtθ)≤1I−1≤ν0u, so |An|≤Ewν(U−Xtθ)−w(ν0U) ≤EI−1≤ν(U−Xtθ)−I−1≤ν0U+EIν0U≤1−Iν(U−Xtθ)≤1 ≤EI−ν−1+Xtθ≤U−I−ν0 −1≤U+EIU≤ν0 −1−IU≤ν−1+Xtθ ≤EIU<−ν−1+Xtθ−IU<−ν0 −1+EIU≤ν0 −1−IU≤ν−1+Xtθ ≤EGj1 σ0−1 ν+Xtθ−Gj−1 σ0ν0 +EGj1 σ01 ν+Xtθ−Gj1 σ0ν0, where we understand that Iu<−1/ν0=0,Gj(−1/σ0ν0)=0,Iu<1/ν0=1and Gj(1/σ0ν0)=1ifν0= 0. Now the proof follows from the continuity of Gjif c0<∞and from the fact that limu→−∞ Gj(u) = 0 while limu→+∞Gj(u)=1. To derive (A.3), note that |Bn|=Ew(ν0U)IU−Xtθ≤σs −Ew(ν0U)IU≤σ0s≤EIU≤Xtθ+σs −IU≤σ0s. If xtθ+σs ≤σ0s,thenIu≤xtθ+σs = 1 implies that Iu≤σ0s=1,sothat Δ(u)=Iu≤xtθ+σs −Iu≤σ0s= 0. Similarly, if Iu≤σ0s=0,thenIu≤xtθ+σs =0 and Δ(u) = 0. Therefore, when xtθ+σs ≤σ0s,Δ(u) = 1 if and only if xtθ+σs<u≤σ0s. On the other hand, if xtθ+σs≥σ0s,thenΔ(u) = 1 if and only if σ0s< u≤xtθ+σs.