na.replace.dist {siggenes}R Documentation

Handling of Missing Values in Categorical Data

Description

Replaces missing values by the distribution of the levels.

Usage

  na.replace.dist(x)

Arguments

x a vector

Details

Each missing value is replaced by a random draw from the levels of x, where the probability that a specific level is drawn is given by the number of non-missing values of x having this level divided by the number of non-missing values of x.

Value

the vector x with missing values replaced by the described method

Author(s)

Holger Schwender, holger.schw@gmx

See Also

na.handling,na.replace.dist


[Package siggenes version 1.4.0 Index]