Description Usage Arguments Details Value Author(s)
Predict the outcome of a new observation based on k-NN.
1 2 |
object |
object of class |
newdata |
a data frame or matrix of new observations. |
... |
additional arguments. |
This function is a method for the generic function predict
for class knnreg
. For the details see knnreg
. This is essentially
a copy of predict.ipredknn
.
a numeric vector
Max Kuhn, Chris Keefer, adapted from knn
and predict.ipredknn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.