multinomial_impute {imputeMulti} | R Documentation |
Impute Values for missing multinomial values
Description
Impute values for multivariate multinomial data using either EM or Data Augmentation.
Usage
multinomial_impute(
dat,
method = c("EM", "DA"),
conj_prior = c("none", "data.dep", "flat.prior", "non.informative"),
alpha = NULL,
verbose = FALSE,
...
)
Arguments
dat |
A |
method |
|
conj_prior |
A string specifying the conjugate prior. One of
|
alpha |
The vector of counts |
verbose |
Logical. If |
... |
Arguments to be passed to other methods |
Value
An object of class imputeMulti-class
References
Schafer, Joseph L. Analysis of incomplete multivariate data. Chapter 7. CRC press, 1997.
See Also
data_dep_prior_multi
, multinomial_em
Examples
## Not run:
data(tract2221)
imputeEM <- multinomial_impute(tract2221[,1:4], method= "EM",
conj_prior = "none", verbose= TRUE)
imputeDA <- multinomial_impute(tract2221[,1:4], method= "DA",
conj_prior = "non.informative", verbose= TRUE)
## End(Not run)