nnmiss {dprep} | R Documentation |
This function is required to perform k-nn imputation.
nnmiss(x, xmiss, ismiss, xnom, K = 1)
x |
A submatrix of complete rows from original matrix |
xmiss |
A a row with a missing value |
ismiss |
A vector that indicates whether a value in xmiss is missing or not |
xnom |
A vector with indexes of nominal variables |
K |
The number of neighbors to use |
Edgar Acuna