I am working on some code for nonparametric regression using local constant, local linear, and local quadratic fits. I would like to speed up the function npreg, which is contained in the attached code. This function gets the fit by weighted least square regression. I suspect that there may be better ways of doing this. Any pointers would be very welcome!
testnpreg.jl
Description: Binary data
