nnmiss {dprep}R Documentation

Auxiliary function for knn imputation

Description

This function is required to perform k-nn imputation.

Usage

nnmiss(x, xmiss, ismiss, xnom, K = 1)

Arguments

x

A submatrix of complete rows from original matrix

xmiss

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

Author(s)

Edgar Acuna

See Also

ce.impute


[Package dprep version 3.1.1 Index]