Related Experiment Video
Updated: Jun 27, 2025

'Boden Food Plate': Novel Interactive Web-based Method for the Assessment of Dietary Intake
Published on: September 18, 2018
Dietary pattern and diversity analysis using DietDiveR in R: a cross-sectional evaluation in the National Health and
Rie Sadohara1, David Jacobs1, Mark A Pereira1
1Division of Epidemiology & Community Health, University of Minnesota, Minneapolis, MN, United States.
Background:
There are few resources available for researchers aiming to conduct 24-h dietary record and recall analysis using R.
Objectives:
We aimed to develop DietDiveR, which is a toolkit of functions written in R for the analysis of recall or record data collected with the Automated Self-Administered 24-h Dietary Assessment Tool or 2-d 24-h dietary recall 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.
Methods:
DietDiveR provides users with functions to 1) clean dietary data, 2) analyze 24-h dietary intakes in relation to other study-specific metadata variables, 3) visualize percentages of energy intake from macronutrients, 4) perform principal component analysis or k-means clustering to group participants by similar data-driven dietary patterns, 5) generate foodtrees based on the hierarchical food group information for food items consumed, 6) perform principal coordinate analysis taking food grouping information into account, and 7) calculate diversity metrics for overall diet and specific food groups. DietDiveR includes a self-paced tutorial on a website (https://computational-nutrition-lab.github.io/DietDiveR/). As a demonstration, we applied DietDiveR to a demonstration data set and data from NHANES 2015-2016 to derive a dietary diversity measure of nuts, seeds, and legumes consumption.
Results:
Adult participants in the NHANES 2015-2016 cycle were grouped depending on the diversity in their mean consumption of nuts, seeds, and legumes. The group with the highest diversity in nuts, seeds, and legumes consumption had 3.8 cm lower waist circumference (95% confidence interval: 1.0, 6.5) than those who did not consume nuts, seeds, and legumes.
Conclusions:
DietDiveR 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 this toolkit, we explored the diversity of nuts, seeds, and legumes consumption to highlight some of the ways DietDiveR can be used for analyses of dietary diversity.
Related Concept Videos
Statistical Methods for Analyzing Epidemiological Data
Statistical Methods to Analyze Parametric Data: ANOVA
One-way ANOVA is applied when a single independent variable or factor is scrutinized. It compares...
Assessment of the Gastrointestinal System II: Health Perception Pattern
Health Perception Patterns
Health perception patterns offer valuable insights into a patient's lifestyle habits and how they may impact their GI health. These patterns include:
Analysis of Population Pharmacokinetic Data
One-Way ANOVA: Unequal Sample Sizes
One-Way ANOVA: Equal Sample Sizes
Different sample means can result in different values for the variance estimate: variance between samples. This is because the variance between samples is calculated as the product of the sample size and the variance between the...

