ec.knnimp {dprep} | R Documentation |
This function imputes missing values by knn imputation.
ec.knnimp(data, nomatr=0, k=10)
data |
matrix containing relevant variables and classes |
nomatr |
list of nominal attributes |
k |
number of neighbors to use for imputation |
r |
matrix with missing values imputed |
Caroline Rodriguez and Edgar Acuna
data(hepatitis) hepa.knnimp=ec.knnimp(hepatitis,nomatr=c(1,3:14),k=10)