ce.knn.imp {dprep} | R Documentation

## Function that calls ec.knnimp to perform knn imputation

### Description

This is just a skeleton function. It simply sets up the dataset that will have its missing values imputed by knn imputation. ec.knnimp is the function that carries out the actual imputation.

### Usage

    ce.knn.imp(m, natr = rep(0, 0), k1)

### Arguments

`m` | matrix to be tested with relevant variables and classes
`natr` | list of nominal attributes
`k1` | number of neighbors to use for imputation

### Value

`r` | matrix with missing values imputed

### Author(s)

Caroline Rodriguez and Edgar Acuna

### Examples

    data(hepatitis)
    hepa.knnimp=ce.knn.imp(hepatitis,natr=c(1,3:14),k1=10)

[Package dprep version 1.0 Index]