knngow {dprep} | R Documentation |
This function performs classification using the k- nearest neighbors but using Gower distance rather than Euclidean distance. It is recommended if the dataset has niminal and continuous attributes.
knngow(train, test, k)
train |
A matrix containing the training dataset. |
test |
A matrix containing the test dataset. |
k |
The number of neighbors to be used. |
predclass |
A vector of predited classes |
Edgar Acuna
## Not run: data(crx) knngow(crx,crx,3) ## End(Not run)