Skip to content
Prev 66260 / 398503 Next

How to do knn regression

ksmooth() will work for you, since you only have one predictor.  There are
better choices, though, such as loess().

Andy