SynMicrodata: An R package for generating synthetic microdata via a nonparametric Bayesian approach
Abstract
The synMicrodata package provides a flexible and fully joint modeling approach for generating synthetic microdata containing both continuous and categorical variables. Built on a nonparametric Bayesian model with Dirichlet process priors, the package captures complex multivariate dependencies in original datasets, even in the presence of missing values. It generates multiple synthetic datasets through a modular workflow for data preprocessing, model fitting, and data synthesis. Simulation studies demonstrate that synMicrodata preserves key marginal statistics and achieves nominal coverage rates. The package produces competitive results when compared to existing synthetic data generation methods, under both complete and missing data scenarios. Consequently, synMicrodata is a valuable tool for ensuring privacy in data dissemination while enabling valid statistical inference on confidential data through simulation.
Fields of Study & Subjects
Privacy-Preserving Technologies in Data
Statistical Methods and Bayesian Inference
demographic modeling and climate adaptation
Publication details
- Journal / source
- SoftwareX
- Volume
- 34
- Pages
- 102541–102541
- Publication date
- 12 February 2026
- Language
- EN