- obsData
The data frame to be imputed. The categorical variables must be
in the first nCat
columns, and they must be coded using consecutive positive
integers.
- nCat
The number of categorical variables in obsData
.
- M
Number of imputations to generate.
- pd
Specify whether to use posterior draws (TRUE
)
or not (FALSE
).
- marginsType
An integer specifying what type of log-linear model to use for the
categorical variables. marginsType=1
, the default, allows for all two-way associations
in the log-linear model. marginsType=2
allows for all three-way associations (plus lower).
marginsType=3
assumes a saturated log-linear model for the categorical variables.
- margins
If marginsType
is not specified, margins
must be
supplied to specify the margins of the log-linear model for the categorical variable.
See the help for ecm.mix
for details on specifying margins
.
- designType
An integer specifying how the continuous variables' means should depend
on the categorical variables. designType=1
, the default, assumes the mean of each continuous
variable is a linear function with main effects of the categorical variables.
designType=2
assumes each continuous variables has a separate mean for each
combination of the categorical variables.
- design
If designType
is not specified, design
must be supplied
to specify how the mean of the continuous variables depends on the categorical variables.
See the help for ecm.mix
for details on specifying design
.
- steps
If pd
is TRUE
, the steps
argument specifies
how many MCMC iterations to perform.
- rseed
The value to set the mix
package's random number seed to,
using the rngseed
function of mix
. This function must be called at least
once before imputing using mix
. If the user wishes to set the seed using
rngseed
before calling mixImp
, set rseed=NULL
.