Bayesian Semiparametric Univariate and Multivariate Density Deconvolution for Continuous and Zero-Inflated Data with the Package BayesDecon
Pub. online: 21 September 2026
Type: Computing In Data Science
Open Access
Received
9 January 2026
9 January 2026
Accepted
28 August 2026
28 August 2026
Published
21 September 2026
21 September 2026
Abstract
Density deconvolution is a fundamental problem in measurement error settings, arising when the goal is to recover the distribution of unobserved latent variables based on their error-contaminated proxies. An important application arises in nutritional epidemiology, where the objective is to estimate the long-term average intake of nutritional components using 24-hour dietary recall data. This task involves complex multivariate models that account for conditionally heteroscedastic measurement errors, zero-inflated proxies for episodically consumed dietary components, diverse marginal distribution shapes across components, etc. While flexible Bayesian hierarchical methods, coupled with Markov chain Monte Carlo techniques, have been increasingly successful in recent years to enable deconvolution under such intricate but realistic scenarios, the development of rapid and user-friendly software implementations has lagged behind. The $\mathsf{R}$ package BayesDecon has been developed to address this challenge, providing a fast and accessible implementation of flexible Bayesian deconvolution methods for practitioners working with measurement errors. In the process, we have introduced substantial improvements to several aspects of the original models and algorithms, and have also added options to fit simpler parametric models. Although illustrated on challenges in nutritional epidemiology, the package addresses general deconvolution problems and hence is broadly applicable to other domains as well.
Supplementary material
Supplementary MaterialSupplementary materials present results from additional simulation experiments and further analyses of the NHANES data set, providing additional validation of the efficiency and reliability of the BayesDecon package. A separate zip file includes data and codes to replicate the results therein.
References
Delaigle A, Meister A (2008). Density estimation with heteroscedastic error. Bernoulli, 14: 562–579. https://doi.org/10.3150/08-BEJ121
Efron B (2016). Empirical Bayes deconvolution estimates. Biometrika, 103: 1–20. https://doi.org/10.1093/biomet/asv068
Eilers PHC, Marx BD (1996). Flexible smoothing with B-splines and penalties. Statistical Science, 11: 89–121. https://doi.org/10.1214/ss/1038425655
Geweke J (1991). Efficient simulation from the multivariate normal and student-t distributions subject to linear constraints and the evaluation of constraint probabilities. In: Computing Science and Statistics: Proceedings of the 23rd Symposium on the Interface, volume 571, 578. Interface Foundation of North America, Inc., Fairfax, Virginia.
Ho B, Ramdas V, Sarkar A (2024). HEI analysis of NHANES dietary data: Exploring the diet quality of Americans with R package heiscore. Journal of Data Science, 1: 1–20. https://doi.org/10.6339/24-JDS1160
Ishwaran H, Zarepour M (2002). Exact and approximate sum representations for the Dirichlet process. Canadian Journal of Statistics, 30: 269–283. https://doi.org/10.2307/3315951
Iturria SJ, Carroll RJ, Firth D (2002). Polynomial regression and estimating functions in the presence of multiplicative measurement error. Journal of the Royal Statistical Society, Series B, Statistical Methodology, 61: 547–561. https://doi.org/10.1111/1467-9868.00192
Kent D, Ruppert D (2023). Smoothness penalized deconvolution (SPeD) of a density estimate. Journal of the American Statistical Association, 119: 2407–2417. https://doi.org/10.1080/01621459.2023.2259028
Keogh RH, Shaw PA, Gustafson P, Carroll RJ, Deffner V, …, Freedman LS (2020). STRATOS guidance document on measurement error and misclassification of variables in observational epidemiology: Part 1—basic theory and simple methods of adjustment. Statistics in Medicine, 39: 2197–2231. https://doi.org/10.1002/sim.8532
Norets A, Pelenis J (2012). Bayesian modeling of joint and conditional distributions. Journal of Econometrics, 168: 332–346. https://doi.org/10.1016/j.jeconom.2012.02.001
Pelenis J (2014). Bayesian regression with heteroscedastic error density and parametric mean function. Journal of Econometrics, 178: 624–638. https://doi.org/10.1016/j.jeconom.2013.10.006
Robert CP (1995). Simulation of truncated normal variables. Statistics and Computing, 5: 121–125. https://doi.org/10.1007/BF00143942
Ruppert D (2002). Selecting the number of knots for penalized splines. Journal of Computational and Graphical Statistics, 11: 735–757. https://doi.org/10.1198/106186002853
Sarkar A (2022). Bayesian semiparametric covariate informed multivariate density deconvolution. Journal of Computational and Graphical Statistics, 31: 1153–1163. https://doi.org/10.1080/10618600.2022.2060239
Sarkar A, Mallick BK, Staudenmayer J, Pati D, Carroll RJ (2014). Bayesian semiparametric density deconvolution in the presence of conditionally heteroscedastic measurement errors. Journal of Computational and Graphical Statistics, 23: 1101–1125. https://doi.org/10.1080/10618600.2014.899237
Sarkar A, Pati D, Chakraborty A, Mallick BK, Carroll RJ (2018). Bayesian semiparametric multivariate density deconvolution. Journal of the American Statistical Association, 113: 401–416. https://doi.org/10.1080/01621459.2016.1260467
Sarkar A, Pati D, Mallick BK, Carroll RJ (2021). Bayesian copula density deconvolution for zero-inflated data in nutritional epidemiology. Journal of the American Statistical Association, 116: 1075–1087. https://doi.org/10.1080/01621459.2020.1782220
Shams-White MM, Pannucci TE, Lerman JL, Herrick KA, Zimmer M, …, Reedy J (2023). Healthy eating index-2020: Review and update process to reflect the dietary guidelines for Americans, 2020–2025. Journal of the Academy of Nutrition and Dietetics, 123: 1280–1288. https://doi.org/10.1016/j.jand.2023.05.015
Shaw PA, Gustafson P, Carroll RJ, Deffner V, Dodd KW, …, Freedman LS (2020). STRATOS guidance document on measurement error and misclassification of variables in observational epidemiology: Part 2—more complex methods of adjustment and advanced topics. Statistics in Medicine, 39: 2232–2263. https://doi.org/10.1002/sim.8531
Silva RD, Lopes HF (2008). Copula, marginal distributions and model selection: A Bayesian note. Statistics and Computing, 18: 313–320. https://doi.org/10.1007/s11222-008-9058-y
Staudenmayer J, Ruppert D, Buonaccorsi JP (2008). Density estimation in the presence of heteroscedastic measurement error. Journal of the American Statistical Association, 103: 726–736. https://doi.org/10.1198/016214508000000328
Wu SM, Stephenson BJK (2024). Bayesian estimation methods for survey data with potential applications to health disparities research. Wiley Interdisciplinary Reviews. Computational Statistics, 16: e1633. https://doi.org/10.1002/wics.1633