The quantile regression is used to estimate conditional median of a variable. Nonparametric quantile regression is performed in a similar framework with locally polynomial fitting. Refer to the following document written by Roger Koenker for more detailed information:
http://www.econ.uiuc.edu/~roger/courses/RMetrics/L3.pdf
The ‘qreg2’ function in the Stata3 software can be used to perform ‘nonparametric quantile regression’. My question is whether there is any open source toolbox including a function equivalent to the 'qreg2' function. If so, could you please suggest such a function or toolbox in MATLAB (or R) which corresponds to the ‘qreg2’ function? If possible, an example code would be helpful. Thank you sincerely for your help in advance.
http://www.econ.uiuc.edu/~roger/courses/RMetrics/L3.pdf