Dietaryindex: A User-Friendly and Versatile R Package for Standardizing Dietary Pattern Analysis in Epidemiological and Clinical Studies

Jiada J Zhan,Rebecca A Hodge,Anne L Dunlop,Matthew M Lee,Linh Bui,Donghai Liang,Erin P Ferranti
DOI: https://doi.org/10.1016/j.ajcnut.2024.08.021
2024-08-23
Abstract:Background: Few standardized and open-source tools exist for calculating multiple dietary pattern indexes from dietary intake data in epidemiological and clinical studies. Objective: The primary aim is to develop and validate dietaryindex, a user-friendly and versatile R package that standardizes the calculation of dietary indexes. Methods: Dietaryindex can calculate multiple dietary indexes of high interest in research, including Healthy Eating Index (HEI) - 2020, Alternative Healthy Eating Index 2010, Dietary Approaches to Stop Hypertension Index, Alternate Mediterranean Diet Score, Dietary Inflammatory Index, American Cancer Society 2020 dietary index, and Planetary Health Diet Index from the EAT-Lancet Commission. The package includes generic dietary index calculation functions that accept any dietary assessment with preprocessed serving sizes of food groups and nutrients, as defined by the research group that developed each index. For ease of use and to eliminate any need for data preprocessing, dietaryindex also offers one-step functions that directly reference common datasets and tools, including the National Health and Nutrition Examination Survey (NHANES), Automated Self-Administered 24-Hour Dietary Assessment Tool (ASA24), Diet History Questionnaire III (DHQ3), and Block Food Frequency Questionnaire. At least two independent researchers validated the serving size definitions and scoring algorithms of dietaryindex. Results: In our validation process, dietaryindex demonstrated full accuracy (100%) in all generic functions with two-decimal rounding precision in comparison to hand-calculated results. Similarly, using NHANES 2017-2018 data and ASA24 and DHQ3 example data, the HEI2015 outputs from dietaryindex aligned (99.95% - 100%) with results using the SAS codes from the National Cancer Institute. Conclusions: Dietaryindex is a user-friendly, versatile, and validated informatics tool for standardized dietary index calculations. We have open-sourced all the validation files and codes with detailed tutorials on GitHub (https://github.com/jamesjiadazhan/dietaryindex).
What problem does this paper attempt to address?