\HeaderA{na.replace.dist}{Handling of Missing Values in Categorical Data}{na.replace.dist}
\keyword{utilities}{na.replace.dist}
\begin{Description}\relax
Replaces missing values by the distribution of the levels.
\end{Description}
\begin{Usage}
\begin{verbatim}
  na.replace.dist(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a vector
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Each missing value is replaced by a random draw from the levels
of \code{x}, where the probability that a specific level is
drawn is given by the number of non-missing values of \code{x}
having this level divided by the number of
non-missing values of \code{x}.
\end{Details}
\begin{Value}
the vector \code{x} with missing values replaced by the described
method
\end{Value}
\begin{Author}\relax
Holger Schwender, \email{holger.schw@gmx}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{na.handling}{na.handling}},\code{\LinkA{na.replace.dist}{na.replace.dist}}
\end{SeeAlso}


