cdf.qp: Calculation of the conditional CDF based on expectile curves

View source: R/cdf.qp.R

cdf.qpR Documentation

Calculation of the conditional CDF based on expectile curves


Estimating the CDF of the response for a given value of covariate. Additionally quantiles are computed from the distribution function which allows for the calculation of regression quantiles.


cdf.qp(expectreg, x = NA, qout = NA, extrap = FALSE, e0 = NA, eR = NA,
       lambda = 0, var.dat = NA)

cdf.bundle(bundle, qout = NA, extrap = FALSE, quietly = FALSE)


expectreg, bundle

An object of class expectreg or subclass bundle respectively. The number of expectiles should be high enough to ensure accurate estimation. One approach would be to take as many expectiles as data points. Also make sure that extreme expectiles are incuded, e.g. expectiles corresponding to very small and large asymmetrie values.


The covariate value where the CDF is estimated. By default the first covariate value.


Vector of quantiles that will be computed from the CDF.


If TRUE, extreme quantiles will be extrapolated linearly, otherwise the maximum of the CDF is used.


Scalar number which offers the possibility to specify an artificial minimal expectile (for example the minimum of the data) used for the calculation. By default e0 = e1 + (e1 - e2) where e1 is the actual minimal expectile and e2 the second smallest expectile.


Scalar number which offers the possibility to specify an artificial maximal expectile (for example the maximum of the data) used for the calculation. By default eR = eR-1 + (eR-1 - eR-2) where eR-1 is the actual maximal expectile and eR-2 the second largest expectile.


Positive Scalar. Penalty parameter steering the smoothness of the fitted CDF. By default equal to 0 which means no penalization.


Positive Scalar. If a penalization is applied (i.e. lambda unequal to 0), this argument can be used to let the penalty depend on the variance of the expectiles (which is the default).


If programm should run quietly.


Expectile curves can describe very well the spread and location of a scatterplot. With a set of curves they give good impression about the nature of the data. This information can be used to estimate the conditional density from the expectile curves. The results of the bundle model are especially suited in this case as only one density will be estimated which can then be modulated to over the independent variable x. The density estimation can be formulated as penalized least squares problem that results in a smooth non-negative density. The theoretical values of a quantile regression at this covariate value are also returned for adjustable probabilities qout.


A list consisting of


vector of expectiles where the CDF is computed.


vector of values of the CDF at the expectiles x.


vector of quantile values estimated from the CDF.


vector of probabilities for the calculated quantiles.


Goeran Kauermann, Linda Schulze Waltrup
Ludwig Maximilian University Munich

Fabian Sobotka
Georg August University Goettingen

Sabine Schnabel
Wageningen University and Research Centre

Paul Eilers
Erasmus Medical Center Rotterdam


Schnabel SK and Eilers PHC (2010) A location scale model for non-crossing expectile curves (working paper)

Schulze Waltrup L, Sobotka F, Kneib T and Kauermann G (2014) Expectile and Quantile Regression - David and Goliath? Statistical Modelling.

See Also, expectreg.qp


d = ~ rb(speed),data=cars,smooth="f",lambda=5,estimate="restricted",
e = cdf.qp(d,15,extrap=TRUE)

expectreg documentation built on March 18, 2022, 5:57 p.m.