bwCV: Computing the cross-validation bandwidth proposed by Abberger (1998)
Description
Function to compute a bandwidth for local linear quantile regression following the cross-validation criteria presented by Abberger (1998).
Usage
bwCV(x, y, hseq, tau)
Arguments
x
numeric vector of x data.
y
numeric vector of y data. This must be the same length as x.
hseq
sequence of values where the cross-validation function will be evaluated.
tau
the quantile order where the regression function is to be estimated. It must be a number strictly between 0 and 1.
Value
Returns a number with the chosen bandwidth.
Details
The cross-validation function is evaluated at each element of hseq. Then, the cross-validation selector will be the element of hseq that minimizes the cross-validation function.
References
Abberger, K. (1998). Cross-validation in nonparametric quantile regression. Allgemeines Statistisches Archiv, 82, 149-161.
Abberger, K. (2002). Variable data driven bandwidth choice in nonparametric quantile regression. Technical Report.
See Also
The obtained bandwidth can be used in the function llqr to produce a local linear estimate of the tau-quantile regression function.