Healthy Eating Index (HEI)

HEI 2015 total and component scores are available in NDSR 2022 and subsequent versions of the program as a report and in output files for recall, record, and menu record types. One total score and one set of component scores are calculated and provided for each record (file 23 for recalls and records; file 24 for menus) and for each eating occasion within a record (file 22).  The output files also provide the contributing dietary constituents (e.g. servings of dairy in cup equivalents, servings of whole fruit in cup equivalents, etc.) to facilitate more complex HEI score calculation methods. See the NDSR User Manual Appendix 24 for more information about HEI 2015 in NDSR, Chapter 10 for more information on HEI 2015 reports, and Chapter 8 for more information about NDSR output files.

 

The 2020 version of the HEI was announced in 2023, and the scoring for the HEI 2020 fully aligns with the HEI 2015.  Therefore, you can consider the HEI 2015 output files and reports available in NDSR to be equivalent to HEI 2020 scores.

 

Data collected in NDSR 2013 or a subsequent version of the program may be restored in NDSR 2022 or a subsequent version to obtain HEI 2015 output files. 

 

NOTE: Users planning to compare HEI 2015 scores previously or newly calculated using the Legacy SAS code provided by NCC (see below for Legacy SAS code and instructions) with those calculated in NDSR 2022 or a subsequent version of the program should be aware of the following two differences that exist between how some contributing dietary constituents are calculated in the Legacy SAS code versus within NDSR.   

1) Nondairy (e.g. plant-based dairy alternative) milks, cheeses, and yogurts are excluded from the Dairy component in NDSR HEI 2015 output files but included when using the Legacy SAS code provided on this website.  

2) Meat-based savory snacks (such as pork rinds and meat-based snack bars) are included in the Total Protein component in the NDSR HEI 2015 output files but excluded when using the Legacy SAS code provided on this website.

 

Legacy SAS code for calculating HEI 2015 total and component scores

 

HEI scores may be calculated using variables available in NDSR output files, which was the only option available prior to the addition of HEI 2015 output files to NDSR in 2022. To facilitate generating HEI 2015 scores we previously created SAS programs, now referred to as Legacy SAS programs, that allow for calculating HEI 2015 scores in accord with two calculation approaches (per each intake day for each person and per person across all intake days). The programs for both calculation approaches calculate total HEI 2015 scores and scores for each of the 13 components of the index.

 

Note that two Legacy SAS programs are available for each approach. One program should be used for data collected using NDSR 2013 or any subsequent version of the program. The other program should be used for data collected using NDSR 2012 or an earlier version of the program. Please see the special instructions for calculating HEI 2015 scores for data collected using NDSR 2012 or an earlier version of the program.

 

A Guide is available to support you in using the Legacy SAS code for calculating HEI 2015 scores.

 

Approach 1: Legacy SAS code for calculating HEI 2015 scores for each intake day for each person

 

The Legacy SAS programs below calculate HEI 2015 scores for person-level NDSR data for each day of intake data, regardless of how many intake days are available for each person.

 

Approach 2: Legacy SAS code for calculating HEI 2015 scores per person when multiple days of intake data are available for each person

 

The Legacy SAS programs below calculate one HEI 2015 score per individual across all days of recalls or records collected, even if some participants have varying number of intake days, including only one.


Special Instructions for Calculating HEI 2015 Scores for Data Collected using NDSR 2012 or an Earlier Version of the Program

 

Before using one of the Legacy SAS programs provided for calculating HEI 2015 scores study data must be restored in NDSR 2012 or a subsequent version of the program if data were collected using an earlier version of the program. Restoration is required so that all needed variables used for calculating HEI 2015 scores are available in the NDSR output files.

 

If some of your data for a specific study was collected using NDSR 2012 or an earlier version of the program and some was collected using NDSR 2013 or a subsequent version, we recommend using the Legacy SAS programs provided for calculating HEI 2015 scores for data collected using NDSR 2012 or an earlier version of the program for all of your study data. We recommend using the same Legacy SAS program to ensure HEI 2015 scores are calculated in an identical manner for all study participants and all dietary intake data collected from study participants. Rationale for this recommendation: The Legacy SAS programs for calculating HEI 2015 scores for data collected using older versus newer versions of NDSR rely on different variables in NDSR output files for measuring servings of whole grains and refined grains. Consequently, HEI 2015 scores calculated by each SAS program may differ as an artifact of the differences in whole grain and refined grain variables used in the calculations.