Description Usage Arguments Details Value Author(s) References See Also Examples
Function to compute a bandwidth for local linear quantile regression following the cross-validation criteria presented by Abberger (1998).
1 | bwCV(x, y, hseq, tau)
|
x |
numeric vector of |
y |
numeric vector of |
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. |
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.
Returns a number with the chosen bandwidth.
Mercedes Conde-Amboage and Cesar Sanchez-Sellero.
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.
The obtained bandwidth can be used in the function llqr
to produce a local linear estimate of the tau
-quantile regression function.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.