Learn R Programming

NPBayesImputeCat (version 0.5)

Non-Parametric Bayesian Multiple Imputation for Categorical Data

Description

These routines create multiple imputations of missing at random categorical data, and create multiply imputed synthesis of categorical data, with or without structural zeros. Imputations and syntheses are based on Dirichlet process mixtures of multinomial distributions, which is a non-parametric Bayesian modeling approach that allows for flexible joint modeling, described in Manrique-Vallier and Reiter (2014) .

Copy Link

Version

Install

install.packages('NPBayesImputeCat')

Monthly Downloads

217

Version

0.5

License

GPL (>= 3)

Maintainer

Jingchen Hu

Last Published

October 3rd, 2022

Functions in NPBayesImputeCat (0.5)

kstar_MCMCdiag

Perform MCMC diagnostics for kstar
pool_estimated_probs

Pool probability estimates from imputed or synthetic datasets
ss16pusa_ds_MCZ

Example dataframe for structrual zeros based on the ss16pusa_sample_zeros dataset.
UpdateX

Allow user to update the model with data matrix of same kind.
marginal_compare_all_syn

Plot estimated marginal probabilities from observed data vs synthetic datasets
marginal_compare_all_imp

Plot estimated marginal probabilities from observed data vs imputed datasets
pool_fitted_GLMs

Pool estimates of fitted GLM models in imputed or synthetic datasets
X

Example dataframe for input categorical data with missing values based on the NYMockexample dataset.
ss16pusa_sample_zeros_miss

Example dataframe for input categorical data with structural zeros (with missing values).
ss16pusa_sample_zeros

Example dataframe for input categorical data with structural zeros (without missing values).
ss16pusa_sample_nozeros_miss

Example dataframe for input categorical data without structural zeros (with missing values).
ss16pusa_sample_nozeros

Example dataframe for input categorical data without structural zeros (without missing values).
ss16pusa_mi_MCZ

Example dataframe for structrual zeros based on the ss16pusa_sample_zeros dataset.
compute_probs

Estimating marginal and joint probabilities in imputed or synthetic datasets
fit_GLMs

Fit GLM models for imputed or synthetic datasets
GetDataFrame

Convert imputed data to a dataframe, using the same setting from original input data.
Lcm

Class "Rcpp_Lcm"
DPMPM_zeros_imp

Use DPMPM models to impute missing data where there are no structural zeros
MCZ

Example dataframe for structrual zeros based on the NYMockexample dataset.
Rcpp_Lcm-class

Rcpp implemenation of the Lcm functions
GetMCZ

Convert disjointed structrual zeros to a dataframe, using the same setting from original structrual zero data.
DPMPM_nozeros_syn

Use DPMPM models to synthesize data where there are no structural zeros
NPBayesImputeCat-package

Bayesian Multiple Imputation for Large-Scale Categorical Data with Structural Zeros
CreateModel

Create and initialize the Lcm model object
DPMPM_nozeros_imp

Use DPMPM models to impute missing data where there are no structural zeros