RT Journal Article SR Electronic T1 Dietary pattern and diversity analysis using ‘DietR’ package in R JF medRxiv FD Cold Spring Harbor Laboratory Press SP 2023.07.07.23292390 DO 10.1101/2023.07.07.23292390 A1 Sadohara, Rie A1 Jacobs, David A1 Pereira, Mark A. A1 Johnson, Abigail J. YR 2023 UL http://medrxiv.org/content/early/2023/07/12/2023.07.07.23292390.abstract AB There are scarce resources available for analyzing 24-hour dietary records. Here we introduce DietR, a set of functions written in R for the analysis of 24-hour dietary recall or records data, collected with either the Automated Self-Administered 24-hour (ASA24) dietary assessment tool or two-day data from the National Health and Nutrition Examination Survey (NHANES). The R functions are intended for food and nutrition researchers who are not computational experts. DietR provides users with functions to (1) clean dietary data; (2) analyze 24-hour dietary intakes in relation to other study-specific metadata variables; (3) visualize percentages of calorie intake from macronutrients; (4) perform principal component analysis (PCA) or k-means to group participants by similar dietary patterns; (5) generate foodtrees based on the hierarchical information of food items consumed; (6) perform principal coordinate analysis (PCoA) taking food classification information into account; (7) and calculate diversity metrics for overall diet and specific food groups. DietR includes a set of tutorials available on a website (https://computational-nutrition-lab.github.io/DietR/), which are designed to be self-paced study materials. DietR enables users to visualize dietary data and conduct data-driven dietary pattern analyses using R to answer research questions regarding diet. As a demonstration of DietR, we applied DietR to a set of created 24-hour dietary records data to demonstrate the basic functions of the package. We also applied DietR to a subset of 24-hour recall data from NHANES to demonstrate analyses using dietary diversity metrics. We present the results of this example NHANES analysis comparing legume diversity with waist circumference.Competing Interest StatementThe authors have declared no competing interest.Funding StatementThis work was supported by start-up funds provided to Abigail Johnson from the University of Minnesota.Author DeclarationsI confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.YesThe details of the IRB/oversight body that provided approval or exemption for the research described are given below:This data used openly available data from the National Health And Nutrition Survey (NHANES), which is accessible at: https://www.n.cdc.gov/nchs/nhanes/continuousnhanes/default.aspx?BeginYear=2015; this study also uses a demonstration data set of created dietary records that are not real dietary records from human subjects.I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.YesI understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).YesI have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.YesDietR package, including the ASA24 demonstration data, is available for download at https://github.com/computational-nutrition-lab/DietR. https://github.com/computational-nutrition-lab/DietR https://computational-nutrition-lab.github.io/DietR/ https://www.n.cdc.gov/nchs/nhanes/continuousnhanes/default.aspx?BeginYear=2015 ANCOVAAnalysis of CovarianceANOVAAnalysis of VarianceASA24Automated Self-Administered 24-hour dietary assessment toolBMIBody Mass IndexFNDDSFood and Nutrient Database for Dietary StudiesIFCIndividual Food Consumption TableIPRIncome to Poverty RatioNHANESNational Health and Nutrition Examination SurveyPCAPrincipal Component AnalysisPCoAPrincipal Coordinate Analysis