NNPredict {bestglm} | R Documentation |
Given training/test data in the predictions on the test data computed. L1, L2 and correlation distances may be used. The data is sphered prior to making the NN predictions.
NNPredict(XyList, dist = c("L2", "COR", "L1"))
XyList |
list with six elements |
dist |
distance used |
vector of predictions
A. I. McLeod
AQ <- airquality[complete.cases(airquality),c(2,3,4,1)]
XyList <- trainTestPartition(AQ)
NNPredict(XyList)