TY - JOUR
AU - PĂ©rez, Adriana
AU - Zhang, Saijuan
AU - Kipniss, Victor
AU - Freedman, Laurence S.
AU - Carroll, Raymond J.
PY - 2012/03/05
Y2 - 2023/12/06
TI - Intake_epis_food(): An R Function for Fitting a Bivariate Nonlinear Measurement Error Model to Estimate Usual and Energy Intake for Episodically Consumed Foods
JF - Journal of Statistical Software, Code Snippets
JA - J. Stat. Soft.
VL - 46
IS - 3
SE - Code Snippets
DO - 10.18637/jss.v046.c03
UR - https://www.jstatsoft.org/index.php/jss/article/view/v046c03
SP - 1 - 17
AB - 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.
ER -