scieee AI-readable full text Open interactive document viewer

Testing in generalized partially linear models: A robust approach

Boente Boente, Graciela; Cao Abad, Ricardo José; González Manteiga, Wenceslao; Rodríguez, Daniela

Abstract

In this paper, we introduce a family of robust statistics which allow to decide between a parametric model and a semiparametric one. More precisely, under a generalized partially linear model, i.e., when the observations satisfy yi |(xi, ti) ∼ F (·, µi) with µi = H  η(ti) + x t i β  and H a known link function, we want to test H0 : η(t) = α + γ t against H1 : η is a nonlinear smooth function. A general approach which includes robust estimators based on a robustified deviance or a robustified quasi-likelihood is considered. The asymptotic behavior of the test statistic under the null hypothesis is obtained

Full text

Accepted Manuscript Testing in generalized partially linear models: A robust approach Graciela Boente, Ricardo Cao, Wenceslao Gonz´ alez Manteiga, Daniela Rodriguez PII: S0167-7152(12)00336-7 DOI: 10.1016/j.spl.2012.08.031 Reference: STAPRO 6408 To appear in: Statistics and Probability Letters Received date: 22 August 2011 Revised date: 29 August 2012 Accepted date: 30 August 2012 Please cite this article as: Boente, G., Cao, R., Gonz´ alez Manteiga, W., Rodriguez, D., Testing in generalized partially linear models: A robust approach. Statistics and Probability Letters (2012), doi:10.1016/j.spl.2012.08.031 This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain. Testing in generalized partially linear models: A robust approach Graciela Boente,a, Ricardo Cao,b, Wenceslao Gonz´alez Manteiga,c, Daniela Rodriguez∗,a aFacultad de Ciencias Exactas y Naturales, Universidad de Buenos Aires and CONICET, Argentina bDepartamento de Matem´aticas, Universidade da Coru˜na, A Coru˜na, Spain cDepartamento de Estad´ıstica e Investigaci´on Operativa, Facultad de Matem´aticas, Universidad de Santiago de Compostela, Santiago de Compostela, Spain Abstract In this paper, we introduce a family of robust statistics which allow to decide between a parametric model and a semiparametric one. More precisely, under a generalized partially linear model, i.e., when the observations satisfy yi|(xi, ti)∼F(·, µi) with µi=Hη(ti) + xt iβand Ha known link function, we want to test H0:η(t) = α+γt against H1:ηis a nonlinear smooth function. A general approach which includes robust estimators based on a robustified deviance or a robustified quasi– likelihood is considered. The asymptotic behavior of the test statistic under the null hypothesis is obtained. Key words: Generalized partially linear models, Kernel weights, Rate of convergence, Robust testing Abbreviated Title: Robust test in generalized semiparametric models. ∗Corresponding Author Instituto de C´alculo, FCEyN, UBA Ciudad Universitaria, Pabell´on 2 Buenos Aires, C1428EHA, Argentina fax 54-11-45763375 Email addresses: [email protected] (Graciela Boente), [email protected] (Ricardo Cao), [email protected] (Wenceslao Gonz´alez Manteiga), [email protected] (Daniela Rodriguez) Preprint submitted to Elsevier August 29, 2012 1. Introduction Semiparametric models contain both a parametric and a nonparametric component. Sometimes the nonparametric component plays the role of a nuisance parameter. A lot of research has been done on estimators of the parametric component in a general framework, aiming to obtain asymptotically efficient estimators. The aim of this paper is to consider semiparametric versions of the generalized linear models where the response yis to be predicted by covariates (x, t), where x∈Rpand t∈ T ⊂ R with Ta compact set. Without loss of generality we will assume that T= [0,1]. It will also be assumed that the conditional distribution of y|(x, t) belongs to the canonical exponential family exp [yθ(x, t)−B(θ(x, t)) + C(y)], for known functions Band C. Then, µ(x, t) = E(y|(x, t)) = B0(θ(x, t)), with B0as the derivative of B. In generalized linear models (McCullagh and Nelder, 1989), which is a popular technique for modelling a wide variety of data, it is often assumed that the mean is modelled linearly through a known link function, g, i.e., g(µ(x, t)) = γ+xtβ+αt. For instance, an ordinary logistic regression model assumes that the observations (yi,xi, ti) are such that the responses are independent binomial variables yi|(xi, ti)∼Bi(1, pi) whose success probabilities depend on the explanatory variables through the relation g(pi) = γ+xt iβ+αti, with g(u) = log (u/(1 −u)). In many situations, the linear model is insufficient to explain the relationship between the response variable and its associated covariates. A natural generalization, which suffers from the curse of dimensionality, is to model the mean nonparametrically in the covariates. An alternative strategy is to allow most predictors to be modelled linearly while one or a small number of predictors enter in the model nonparametrically. This is the approach we will follow, so that the relationship will be given by the semiparametric generalized partially linear model µ(x, t) = Hη(t) + xtβ(1) where H=g−1is a known link function, β∈Rpis an unknown parameter and ηis an unknown smooth function. In the context of hypothesis testing for regression models, that is, when H(t) = t, Gao (1997) established a large sample theory for testing H0:β= 0 and, in addition to this, H¨ardle et al. (2000) tested H0,η :η=η0too, while H¨ardle and Mammen (1993) considered the lack of fit problem H0:η∈ {ηθ:θ∈Θ}. Besides, Gonz´alez–Manteiga and Aneiros–P´erez (2003) studied the case of dependent errors and Koul and Ni (2004) considered the case of random design and heteroscedastic errors. These methods are based on a L2distance comparison between a nonparametric estimator of the regression function and a smoothed parametric estimator, so they face the problem of selecting the smoothing parameter. An alternative approach is based on the empirical estimator of the integrated regression function. Goodness of fit tests based on empirical process for regression models with non– random design have been studied, for instance, by Koul and Stute (1998) and Diebolt (1995). On the other hand, under a purely nonparametric regression model with Berkson measurement errors, Koul and Song (2008) considered a marked empirical process of the calibrated residuals. Recently, Koul and Song (2010) proposed a test for the partial linear regression model based on the supremum of a martingale transform of a process of calibrated residuals, when both the covariates in the parametric and nonparametric components are subject to Berkson measurement errors. On the other hand, for generalized partially linear models, hypothesis testing mainly focusses on comparing kernel based estimators with smoothed parametric estimators. For instance, H¨ardle et al. (1998) considered a test statistic to decide between a linear and a semiparametric model. Their proposal is based on the estimation procedure considered by Severini and Staniswalis (1994) 2 modified to deal with the smoothed and unsmoothed likelihoods. A comparative study of different procedures was performed by M¨uller (2001) while a different approach was considered in Rodr´ıguez Campos et al. (1998). As it is well known, such estimates fail to deal with outlying observations and so does the test statistic. In a semiparametric setting, outliers can have a devastating effect, since the extreme points can easily affect the scale and the shape of the function estimate of η, leading to possibly wrong conclusions. In particular, as mentioned Hampel’s comment on Stone (1977) paper “If we believe in a smooth model without spikes,.. . , some robustification is possible. In this situation, a clear outlier will not be attributed to some sudden change in the true model, but to a gross error, and hence it may be deleted or otherwise made harmless”. Therefore, in this context robust procedures need to be developed to avoid wrong conclusions on the hypothesis to be tested (see Bianco et al. (2006) for a discussion). Robust procedures for generalized linear models have been considered among others by Stefanski et al. (1986), K¨unsch et al. (1989), Bianco and Yohai (1995), Cantoni and Ronchetti (2001), Croux and Haesbroeck (2002) and Bianco et al. (2005). The basic ideas from robust smoothing and from robust regression estimation have been adapted to deal with the case of independent observations following a partially linear regression model with H(t) = t; we refer to Gao and Shi (1997), He et al. (2002) and Bianco and Boente (2004). Moreover, robust tests for a given alternative, under a partially linear regression model were studied in Bianco et al. (2006). Besides, a robust approach for testing the parametric form of a regression function versus an omnibus alternative, based on the centered asymptotic rank transformation, was considered by Wang and Qu (2007) when H(t) = t and β= 0, i.e., under the nonparametric model yi=η(ti) + i. Under a generalized partially linear model (1), Boente et al. (2006) introduced a general profile– based two–step robust procedure to estimate the parameter βand the function ηwhile Boente and Rodriguez (2010) (see also, Rodriguez, 2008) developed a three–step method to improve the computational time of the previous one. Beyond the importance of developing robust estimators in more general settings, the work on testing also deserves attention. An up-to-date review of robust hypothesis testing results can be found in He (2002). The aim of this paper is to propose a class of tests for the nonparametric component based on the three–step robust procedure proposed by Boente and Rodriguez (2010). The paper is organized as follows. In Section 2, we remind the definition of the general profile– based two–step estimators as well as the three–step robust estimates and their asymptotic properties. In Section 3, we present a robust alternative to test hypothesis concerning the nonparametric component η. Their asymptotic behavior is studied in Section 4 while a bootstrap procedure is discussed in Section 5. Section 6 reports the result of a Monte Carlo study conducted to evaluate the performance of the tests under the null hypothesis and under a set of alternatives. Finally, proofs are relegated to the Appendix. 2. Preliminaries: The estimation procedure As mentioned in the Introduction, Boente et al. (2006) introduced a highly robust procedure under model (1) while Boente and Rodriguez (2010) introduced a local approach to improve the computational time. Let (yi,xi, ti) be independent observations such that yi|(xi, ti)∼F(·, µi) with µi=Hη(ti) + xt iβand Var (yi|(xi, ti)) = V(µi). Let η0(t) and β0denote the true parameter values, and E0the expected value under the true model, so that E0(y1|(x1, t1)) = Hη0(t1) + xt 1β0. 3 As in Robinson (1988), we will assume that the vector 1nis not in the space spanned by the column vectors of (x1,···,xn)t, that is, we do not allow β0to include an intercept so that the model is identifiable, i.e., if xt iβ1+η1(ti) = xt iβ2+η2(ti) for 1 ≤i≤n, then, β1=β2and η1=η2. Due to the generality of the semiparametric model (1), identifiability implies that only “slope”coefficients can be estimated. Let w1:Rp→Rbe a weight function to control leverage points on the carriers x,ρ:R2→Ra loss function and K:R→Ra kernel function. Define S(β, a, τ) = E0ρy, xtβ+aw1(x)|t=τ and Sn(β, a, t) = Pn i=1 Wi(t)ρyi,xt iβ+aw1(xi) where Wi(t) are the kernel weights on ti, i.e. Wi(t) =   n X j=1 K((t−tj)/hn)  −1 K((t−ti)/hn). Following the ideas of Severini and Staniswalis (1994), Boente et al. (2006) defined, for each fixed β, the function ηβ(t) as the minimizer of S(β, a, t). Since Sn(β, a, t) provides a consistent estimate of S(β, a, t), the minimizer in a,bηβ(t), of Sn(β, a, t) estimates ηβ(t). These functions allow the above mentioned authors to define a two–step robust quasi–likelihood estimators of β0and η0as b β= argminβSn(β, ηβ, t) and bη(t) = bηb β(t), respectively. Boente and Rodriguez (2010) introduced a new family of estimators of β0and η0that improve the computational results. Both proposals provide robust root-nconsistent estimators of the regression parameter β. If the function ρ(y, u) is continuously differentiable and we denote Ψ (y, u) = ∂ρ(y, u)/∂u, the functional ηβ(t) and the estimates bηβ(t) will be a solution of the differentiated equations, i.e., they will be a solution of S(1)(β, a, t) = 0 and S(1) n(β, a, t) = 0 respectively, where S(1)(β, a, τ) = E0Ψy, xtβ+aw1(x)|t=τand S(1) n(β, a, t) = Pn i=1 Wi(t)Ψ yi,xt iβ+aw1(xi). We refer to Boente et al. (2006) and Boente and Rodriguez (2010) for a discussion on the choice of the loss functions, where also conditions to ensure Fisher–consistency of the resulting estimators are stated. We only point out that, under a generalized linear model, two families of loss functions ρhave been considered in the literature, the first one bounds the deviances, as in our simulation study, while the second one introduced by Cantoni and Ronchetti (2001) is based on robustifying the quasi–likelihood by bounding the Pearson residuals. 3. Test statistics A robust test statistic to test H0:η0∈ {α+γ t, α ∈R, γ ∈R}can be defined by comparing the robust semiparametric estimators with the robust estimators obtained under a parametric model. We will give an approach which robustifies the test statistic defined in H¨ardle et al. (1998). Denote b βa robust root−nestimator of β0and bη(t) = bηb β(t) the estimates of η0(t) solution of bηb β(t) = argmina∈RSn(b β, a, t). As in Section 2, let w2:Rp→Rbe a weight function that controls high leverage points on the covariates x. Denote L(β, α, γ) = E0ρy, xtβ+α+γtw2(x)and Ln(β, α, γ) = 1 n n X i=1 ρyi,xt iβ+α+γtiw2(xi), which correspond to the robustified objective functions under a generalized linear regression model. Then, the robust estimates of the regression parameter under the generalized linear model can be 4 defined as the minimizer of Ln (b βh0,bαh0,bγh0) = argmin β∈Rp,α∈R,γ∈R Ln(β, α, γ).(2) To test H0, a natural approach is to compare the predicted values xt ib β+bη(ti) with those obtained under the null hypothesis, xt ib βh0+bαh0+bγh0ti. However, as it is well known, in nonparametric and semiparametric models, due to the bias of the kernel estimator of S(β, a, t), the smoothing bias of bη(t) is non-negligible, even under the linear hypothesis H0, see, for instance, H¨ardle and Mammen (1993) and H¨ardle, et al. (1998) for a discussion, when considering the classical estimators. For that reason, a simple comparison between both estimators may be misleading and conduct wrong conclusions. To solve this problem, H¨ardle, et al. (1998) introduced a smoothing bias to bαh0+bγh0t to compensate that of bη(t). It is worth noting that the smoothed estimators obtained under the null hypothesis may not belong to family of linear functions. However, they provide consistent estimators under the parametric model. To define smoothed estimators under the null hypothesis, consider the pseudo–observations eyi corresponding to the parametric fit of the conditional expectation under the null hypothesis, that is, eyi=Hxt ib βh0+bαh0+bγh0tiand denote e Ψ(µ, xtβ+a) = EΨy, xtβ+a|(x, t)where the conditional expectation is taken when y|(x, t)∼F(·, µ). The function bηh0is defined as follows. Since the pseudo–observations will not have outliers, in the sense of large Pearson residuals, but only leverage points could appear, it is quite natural to define bηh0(t) as the value solving Pn i=1 Wi(t)e Ψ(eyi,xt ib βh0+a)w1(xi) = 0, or equivalently as the value bηh0(t) = argmina∈Re Sn(b βh0, a, t), where e Sn(β, a, t) = Pn i=1 Wi(t)eρeyi,xt iβ+aw1(xi), with (∂eρ(µ, a)) /∂a =e Ψ(µ, a). Note that under mild conditions eρ(µ, a) = E(ρ(y, a)|(x, t)) where the conditional expectation is taken when y|(x, t)∼F(·, µ). Then, the test statistic is defined using a goodness–of–fit measure, based on the quasi–likelihood function T1=−2 n X i=1 QHxt ib β+bη(ti), H xt ib βh0+bηh0(ti)w2(xi)w(ti) where Q(y, µ) = Ry µ(s−y)V−1(s)ds is the quasi–likelihood. Since the quasi-likelihood is computed comparing predicted values for the responses based on robust estimators, large deviations of the predicted responses from its mean will not have large influence in the test statistics. However, outlying points in the explanatory variables may have large influence on the quasi–likelihood expression. Hence, in order to bound their effect, we introduce a weight function w2(xi) in the test definition. We have also included a weight function w(t) to avoid boundary effects. The function whas a compact support T0⊂ T = [0,1], in particular we have that for nlarge enough I[hn,1−hn](t)≥w(t). This robust version of quasi-likelihood test is different from the robust likelihood ratio–type or score type tests as defined in Heritier and Ronchetti (1994) which still uses the responses yiand compares the responses and the fits obtained under the restricted and unrestricted models. 4. Asymptotic behavior For the sake of simplicity, we denote ρn=h2 n+ (n hn)−1 2,χ(y, a) = ∂Ψ (y, a)/∂a,χ1(y, a) = ∂2Ψ (y, a)/∂a2,bυ(β, t) = bηβ(t)−ηβ(t), bυ0(t) = bυ(β0, t), bυj(β, t) = ∂bυ(β, t)/∂βjand bυj,0(t) = bυj(β0, t). 5 We will need the following set of assumptions A1. The density fof t1is bounded on T, twice continuously differentiable in the interior of Twith bounded derivatives A2. inft∈[0,1] f(t)>0 A3. η0is twice continuously differentiable in the interior of Twith bounded derivatives on T. A4. r(t, τ) = E0χy1,xt 1β0+η0(t)w1(x1)|t1=τis uniformly continuous in the interior of T and bounded in T. A5. The functions v0(τ) = E0χy1,xt 1β0+η0(τ)w1(x1)|t1=τand v1(τ) = E0χy1,xt 1β0+η0(τ)x1w1(x1)|t1=τare uniformly continuous in the interior of Tand Iv0= inft∈[0,1] |v0(τ)|>0. A6. Ψ, χ,χ1,w,wjand ψj(x) = xwj(x) are bounded functions for j= 1,2. A7. Kis a function of bounded variation with compact support [0,1] and it satisfies RK(u)du = 1 and Ru K(u)du = 0. A8. The bandwidth sequence satisfies nh3 n/log(n)→ ∞ and n1 2h4 nlog(n)→0. Theorem 4.1. Assume that A1 to A8 hold. Moreover, assume that a) G={g(y, x, u) = χy, xtβ0+aw1(x)−E0χy1,xt 1β0+aw1(x1)|t1=u, a ∈R},has covering number N(, G, L1(Q)) ≤A−W, for any probability Qand 0<  < 1. b) ψ1,2(x) = w1(x)kxk2is bounded or supt∈T E0(ψ1,2(x)|t)<∞. Then, under H0:η∈ {α+γ t, α ∈R, γ ∈R}, we have that v−1 n(T1−mn)w −→ N(0,1), with mn=c1,Ψh−1 nRK2(u)du and v2 n= 2c2,Ψh−1 nR(K∗K(u))2du, where c1,Ψ=E w(t1)E"w2(xi)H0xt 1β0+α0+γ0t12 VHxt 1β0+α0+γ0t1t1#Ehw2 1(x1)σ2(x1, t1)t1iv0(t1)−2f(t1)−1! c2,Ψ=E "E(w2(xi)H0xt 1β0+α0+γ0t12 VHxt 1β0+α0+γ0t1t1)#2hEnw2 1(x1)σ2(x1, t1)t1oi2w2(t1) v0(t1)4f(t1)  σ2(x0, t0) = EhΨy1,xt 1β0+η0(t1)−E0Ψy1,xt 1β0+η0(t1)|(x1, t1)i2|(x1, t1) = (x0, t0). Remark 4.1. When considering the canonical exponential family described in the Introduction VHxt 1β0+η0(t1)=H0xt 1β0+η0(t1)and so c1,Ψ=Ew(t1)Ehw2(x1)H0xt 1β0+α0+γ0t1t1iEhw2 1(x1)σ2(x1, t1)t1iv0(t1)−2f(t1)−1 c2,Ψ=Ew2(t1)hEnw2(x1)H0xt 1β0+α0+γ0t1t1oi2hEnw2 1(x1)σ2(x1, t1)t1oi21 v0(t1)4f(t1). 5. A Montecarlo test In this section, we develop a boostrap procedure to implement the goodness–of–fit test for linearity. The need of bootstrapping has been studied by several authors such as H¨ardle and Mammen 6 (1993), H¨ardle et al. (1998). These authors applied a wild bootstrap procedure to construct the bootstrap samples. However, in the present setting due to the expensive computing time needed to compute the robust estimators, a linearised Montecarlo as defined in Zhu (2005) provides a better approach. This approach was also considered in Zhu and Zhang (2004) who propose a resampling procedure for approximating the p−value when considering a log-likelihood ratio test statistics for testing homogeneity. R´emillard and Scaillet (2009) and Kojadinovic and Yan (2011) applied this method to provide fast goodness–of–fit tests for copulas. As it will be shown in the Appendix, T1=Rn+Op((n/h) 1 2ρnlog n), under H0:η0∈ {α+γ t, α ∈ R, γ ∈R}, with Rn= n X i=1 w(ti)w2(xi)H0xt iβ0+α0+γ0ti2 VHxt iβ0+α0+γ0tiv0(ti)−2f(ti)−2×    n X j=1 W0,j(ti)w1(xj)hΨyj,xt jβ0+η0(ti)−E0Ψyj,xt jβ0+η0(ti)|(xj, tj,xi, ti)i   2 =nZw(t)w2(x)H0xtβ0+α0+γ0t2 V(H(xtβ0+α0+γ0t))v0(t)−2f(t)−2W2 n(t)dFn(x, t), where Wn(t) = Pn j=1 W0,j(t)w1(xj)Ψyj,xt jβ0+η0(t)−E0Ψyj,xt jβ0+η0(ti)|(xj, tj, ti=t). This suggests the following Montecarlo procedure Step B1 Given a sample {(yi,xi, ti)}1≤i≤ncompute the estimators (b βh0,bαh0,bγh0) as in (2). Define •bv0(t) = Pn i=1 Wi(t)χyi,xt ib βh0+bηH0(t)w1(xi) with bηH0(t) = bαh0+bγh0t. •bj(t) = Ψ yj,xt jb βh0+bηH0(t)−E0Ψyj,xt jb βh0+bηH0(t)|(xj, tj) Step B2 Generate nrandom variables ? 1...? n, independent of the sample {(yi,xi, ti)}1≤i≤n and such that E(? i) = 0, Var(? i) = 1 and ? iare bounded. For instance, we generate n observations from the two point distribution P?(?=a) = pand P?(?=b) = 1 −p, with a= (1 −√5)/2, b= (1 + √5)/2 and p= (5 + √5)/10. Step B3 Define R? n=R? n(b βh0,bv0,bηH0) with R? n= n X i=1 w(ti)w2(xi) H0xt ib βh0+bηH0(ti)2 VHxt ib βh0+bηH0(ti)bv0(ti)−2   n X j=1 Wj(ti)w1(xj)bj(ti)? j   2 . Step B4 Repeat Step B2 and Step B3 Nboot times, to get Nboot values of R? n, say R? n,i, 1≤i≤Nboot. The (1 −α)−quantiles of the distribution of R(an so of T1) can be approximated by the (1 − α)−quantiles of the conditional distribution of R?. The p−value can be estimated by bp=k/(Nboot + 1) where kis the number of R? n,i which are larger or equal than T1. 7 6. Monte Carlo study This section contains the results of a simulation study conducted with the aim of comparing the performance of the proposed testing procedure with the classical one. We consider a logistic partially linear model. The classical procedure corresponds to use the maximum likelihood estimators under the parametric model and the estimators defined in Carroll et al. (1997), which are an alternative to those, based on profile likelihood, considered in Severini and Staniswalis (1994), under the nonparametric one. To be more precise, we select the deviance as loss function and w1=w2≡1 in Sections 2 and 3. The robust estimators correspond to those controlling large values of the deviance and they are computed using the score function defined in Croux and Haesbroeck (2002) with tuning constant c= 0.5. The weight functions w1and w2used to control high leverage points are taken as the Tukey’s biweight function with tuning constant c= 4.685. To be more precise, since xi∈R, we define w2 1(xi) = w2 2(xi) = 1−[(xi−Mn)/4.685]22when |xi−Mn| ≤ 4.685 and 0 otherwise, with Mnthe median of xi. The central model denoted C0in the figures corresponds to a logistic model where xi∼ U(−1,1) and ti∼ U(0,1), independent each other. On the other hand, the responses are such that yi|(xi, ti)∼Bi(1, p(xi, ti)) with log (p(x, t)/(1 −p(x, t))) = β0x+η0(t, ∆), with β0= 2, η0(t, ∆) = (t−0.5) + ∆ cos(6π(t−0.5)), that is, H(u) = exp(u)/(1 + exp(u)). The value ∆ = 0 corresponds to the null hypothesis, H0:η0∈ {α+γ t, α ∈R, γ ∈R}, while as alternatives we choose a grid of 10 equally spaced values of ∆ ∈[0.2,2.0]. We performed NR = 1000 replications of samples of size n= 200 and Nboot = 5000 bootstrap samples. The Epanechnikov kernel K(t) = (3/4)(1 −t2)I[−1,1](t) was selected for the smoothing procedure with bandwidth h= 0.1. Clearly, the test statistics considered depend on the choice of h. For the classical procedure, H¨ardle et al. (1998) pointed the sensitivity of the test level to the selection of the bandwidth parameter. In particular, they suggested to apply the test for different choices of hto have an impression on how the function η0differs significantly from linearity. The selected value h= 0.1 was chosen so that, under H0, the observed frequencies of rejection for the bootstrap robust and classical test reached values close to the nominal level α= 0.1. Figure 1 gives the frequency of rejection both for the classical and robust procedure for the uncontaminated samples. The nominal level was 0.10. The frequency of rejection of the asymptotic test is plotted in lines combined with filled diamonds while that of the Montecarlo test corresponds to the solid line. As expected the Montecarlo test improves the performance of the asymptotic ones, for the sample size considered. For each generated sample, we also consider the following contaminations labelled C1and C2. We first generate a sample ui∼ U(0,1) for 1 ≤i≤nand then, the contaminated sample, denoted (yi,c, xi,c, ti), is defined as follows for each contamination scheme •Contamination C1introduces bad high leverage points in the carriers x, without changing the responses already generated, i.e., (yi,c, xi,c) = (yi, xi) if ui≤0.90 and (yi,c, xi,c) = (yi, xi,new) if ui>0.90, where xi,new is a new observation from a N(10,1). •Contamination C2includes outlying observations in the responses generated according to an incorrect model. Let eη(t, ∆) = ∆ cos(6π(t−0.5)) and pi,new =H(eη(ti,20(1 −∆))), define yi,new ∼Bi(1, pi,new). Then, (yi,c, xi,c) = (yi, xi) if ui≤0.90 and (yi,c, xi,c) = (yi,new, xi) if ui>0.90. 8 Gonz´alez–Manteiga, W. and Aneiros–P´erez, G. (2003). Testing in partial linear regression models with dependent errors. J. Nonparametr. Statist.,15, 93–111. H¨ardle, W., Liang, H. and Gao, J. (2000). Partially linear models. Springer-Verlag. H¨ardle, W. and Mammen, E. (1993). Comparing nonparametric versus parametric regression fits. Ann. Statist., 21, 1926–1947. H¨ardle, W., Mammen, E. and M¨uller, M. (1998). Testing parametric versus semiparametric modeling in generalized linear models. J. Amer. Statist. Assoc.,93, 1461–1474. He, X. (2002). Robust tests in statistics – a review of the past decade. Estad´ıstica,54, 29–46. He, X., Zhu, Z. and Fung, W. (2002). Estimation in a semiparametric model for longitudinal data with unspecified dependence structure. Biometrika,89, 579–590. Heritier, S. and Ronchetti, E. (1994). Robust bounded-influence tests in general parametric models. J. Amer. Statist. Assoc. 89, 897–904. Kojadinovic, I. and Yan, J. (2011). A goodness-of-fit test for multivariate multiparameter copulas based on multiplier central limit theorems. Statistics and Computing,21, 17–30. Koul, H. and Ni, P. (2004). Minimum distance regression model checking. J. Statist. Plan. Inference,119, 109–142. Koul, H. L. and Song, W. (2008). Regression model checking with Berkson measurement errors. J. Statist. Plan. Inference,138, 1615–1628. Koul, H. L. and Song, W. (2010). Model checking in partial linear regression models with Berkson measurement errors. Statistica Sinica,20, 1551–1579. Koul, H. L. and Stute, W. (1998). Lack of fit tests in regression with non–random design. Applied Statistical Science,3, 53–69. K¨unsch, H., Stefanski, L. and Carroll, R. (1989). Conditionally unbiased bounded-influence estimation in general regression models with applications to generalized linear models. J. Amer. Statist. Assoc.,84, 460–466. Mc Cullagh, P. and Nelder, J.A. (1989). Generalized linear models. London: Chapman and Hall. 2nd edition. M¨uller, M. (2001). Estimation and testing in generalized partial linear models A comparative study. Statistics and Computing,11, 299-309. Pollard, D. (1984). Convergence of Stochastic Processes. New York: Springer–Verlag. R´emillard, B. and Scaillet, O. (2009) Testing for equality between two copulas. J. Multivariate Anal.,100, 377-386. Robinson, P. (1988). Root-n-consistent Semiparametric regression. Econometrica,56, 931–954. Rodriguez, D. (2008). Estimaci´on robusta en modelos parcialmente lineales generalizados. Ph.D. thesis at the University of Buenos Aires. Available at http://cms.dm.uba.ar/doc/tesisdanielarodriguez.pdf Rodr´ıguez Campos, M. C., Gonz´alez–Manteiga, W. and Cao, R. (1998). Testing the hypothesis of a generalized linear regression model using nonparametric regression estimation. J. Statist. Plan. Inference,67, 99–122. Severini, T. and Staniswalis, J. (1994). Quasi-likelihood estimation in semiparametric models. J. Amer. Statist. Assoc.,89, 501–511. Stefanski, L., Carroll, R. and Ruppert, D. (1986). Bounded score functions for generalized linear models. Biometrika, 73, 413–424. Stone, C. (1977). Consistent nonparametric regression. Ann. Statist.,5, 595–645. Wang, L. and Qu, A. (2007). Robust tests in regression models with omnibus alternatives and bounded influence. J. Amer. Statist. Assoc.,102, 347–358. Zhu, L. (2005). Nonparametric Monte Carlo tests and their applications. Lecture notes in Statistics, 182. Zhu, L. and Zhang, H. (2004). Hypothesis testing in mixture regression models. J. Royal Statist. Soc., Ser. B,66, 3–16. 15