predict.knnreg: Predictions from k-Nearest Neighbors Regression Model

Description Usage Arguments Details Value Author(s)

Description

Predict the outcome of a new observation based on k-NN.

Usage

1
2
## S3 method for class 'knnreg'
predict(object, newdata, ...)

Arguments

object

object of class knnreg.

newdata

a data frame or matrix of new observations.

...

additional arguments.

Details

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.

Value

a numeric vector

Author(s)

Max Kuhn, Chris Keefer, adapted from knn and predict.ipredknn


caret documentation built on May 2, 2019, 5:47 p.m.

Related to predict.knnreg in caret...