The non-missing cases indicate the training set, and missing cases indicate the test set.
impute_knn(x, data, seed = 123456)
random seed for knn imputation reproducibility
An object with (potentially not all) missing values imputed with K-Nearest Neighbours.
We consider 5 nearest neighbours and the minimum vote for definite decision is 3.
Other imputation functions: