Shengqiao Li <shli <at> stat.wvu.edu> writes:
> 
> Hello,
>
> I want to do regression or missing value imputation by knn. I searched 
> r-help mailing list. This question was asked in 2005. ksmooth and loess 
> were recommended. But my case is different. I have many predictors 
> (p>20) and I really want try knn with a given k. ksmooth and loess use 
> band width to define neighborhood size. This contrasts to knn's variable 
> band width via fixing a k. Are there any such functions I can use in R 
> packages? 
> 

The R package 'knnFinder' provides a nearest neighbor search based on the 
approach through kd-tree data structures. Therefore, it is extremely fast 
even for very large data sets. It returns as many neighbors as you need 
and can also be used, e.g., for determining distance-based outliers.

Hans Werner Borchers
ABB Corporate Research

> 
> Your help is highly appreciated.
> 
> Shengqiao Li
> 
> ______________________________________________
> R-help <at> r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to