View source: R/multinomial_impute.R
| multinomial_impute | R Documentation | 
Impute values for multivariate multinomial data using either EM or Data Augmentation.
multinomial_impute(
  dat,
  method = c("EM", "DA"),
  conj_prior = c("none", "data.dep", "flat.prior", "non.informative"),
  alpha = NULL,
  verbose = FALSE,
  ...
)
| dat | A  | 
| method | 
 | 
| conj_prior | A string specifying the conjugate prior. One of 
 | 
| alpha | The vector of counts α for a Dir(α) prior. Must be specified if 
 | 
| verbose | Logical. If  | 
| ... | Arguments to be passed to other methods | 
An object of class imputeMulti-class
Schafer, Joseph L. Analysis of incomplete multivariate data. Chapter 7. CRC press, 1997.
data_dep_prior_multi, multinomial_em
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.