@article{JSSv046c03,
title={Intake_epis_food(): An R Function for Fitting a Bivariate Nonlinear Measurement Error Model to Estimate Usual and Energy Intake for Episodically Consumed Foods},
volume={46},
url={https://www.jstatsoft.org/index.php/jss/article/view/v046c03},
doi={10.18637/jss.v046.c03},
abstract={We consider a Bayesian analysis using WinBUGS to estimate the distribution of usual intake for episodically consumed foods and energy (calories). The model uses measures of nutrition and energy intakes via a food frequency questionnaire along with repeated 24 hour recalls and adjusting covariates. In order to estimate the usual intake of the food, we phrase usual intake in terms of person-specific random effects, along with day-to-day variability in food and energy consumption. Three levels are incorporated in the model. The first level incorporates information about whether an individual reported consumption of a particular food item. The second level incorporates the amount of food consumption equalling to zero if not consumed, and the third level incorporates the amount of energy intake. Estimates of posterior means of parameters and distributions of usual intakes are obtained by using Markov chain Monte Carlo calculations which can be thought as mean estimates for frequentists. This R function reports to users point estimates and credible intervals for parameters in the model, samples from their posterior distribution, samples from the distribution of usual intake and usual energy intake, trace plots of parameters and summary statistics of usual intake, usual energy intake and energy adjusted usual intake. },
number={3},
journal={Journal of Statistical Software, Code Snippets},
author={Pérez, Adriana and Zhang, Saijuan and Kipniss, Victor and Freedman, Laurence S. and Carroll, Raymond J.},
year={2012},
pages={1–17}
}