prelim.mix {mix} | R Documentation |
Preliminary Manipulations on Matrix of Incomplete Mixed Data
Description
This function performs grouping and sorting operations on a mixed
dataset with missing values. It creates a list that is
needed for input to em.mix
, da.mix
,
imp.mix
, etc.
Usage
prelim.mix(x, p)
Arguments
x |
data matrix containing missing values. The rows of x correspond to
observational units, and the columns to variables. Missing values are
denoted by |
p |
number of categorical variables in x |
Value
a list of twenty-nine (!) components that summarize various features of x after the data have been collapsed, centered, scaled, and sorted by missingness patterns. Components that might be of interest to the user include:
nmis |
a vector of length |
r |
matrix of response indicators showing the missing data patterns in
|
References
Schafer, J. L. (1996) Analysis of Incomplete Multivariate Data. Chapman & Hall, Chapter 9.
See Also
em.mix
, ecm.mix
,
da.mix
, dabipf.mix
, imp.mix
,
getparam.mix
Examples
data(stlouis)
s <- prelim.mix(stlouis, 3) # do preliminary manipulations
s$nmis # look at nmis
s$r # look at missing data patterns