Skip to content
Back to formatted view

Raw Message

Message-ID: <7d30e3c050321081731112760@mail.gmail.com>
Date: 2005-03-21T16:17:16Z
From: Menghui Chen
Subject: How to do knn regression

How can I do a simple k nearest neighbor regression in R? My training
data have 1 predictor and 1 outcome, both are numeric. I also need to
use FPE and SC to find the optimal model. I know there is knn() in
class package, but it's for knn classification. I also find a kknn
package. What function should I use?

Thanks in advance!

Menghui