Skip to content

didierbrassard/hefi2019

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

138 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Healthy Eating Food Index-2019

Background

Canada’s Food Guide (CFG) 2019 includes dietary guidance both on healthy food choices and eating behaviors. The Healthy Eating Food Index (HEFI)-2019 is a scoring tool developed to measure adherence to recommendations on healthy food choices in CFG (Brassard, Elvidge Munene, St-Pierre, Guenther, et al. 2022). The HEFI-2019 has 10 components, of which 5 are based on the intake of foods, 1 on beverages, and 4 on nutrients. The total HEFI-2019 score has a maximum of 80 points.

Useful resources

Health Canada has a web page dedicated to Canada’s Food Guide Research Tools.

For the HEFI-2019, Health Canada has also made available a series of resources and files to assist in the calculation of scores. Notably, the data and other documents are available under the name The Healthy Eating Food Index 2019 on the Open Government data portal. These files are especially helpful to assist in the preliminary steps, i.e., the classification of foods and beverages, the addition of data on free sugars as well as data on reference amounts per gram of foods.

Scoring Algorithm

The goal of the hefi2019 code is to apply the HEFI-2019 scoring algorithm to dietary constituents in the dataset provided by the user. The original variables are kept in the output data set, along with new variables including:

  1. density of intakes (i.e., ratios of dietary constituents);
  2. the HEFI-2019 component scores; and
  3. the total HEFI-2019 score.

See the development and evaluation articles for more details as well as information on classification of foods (Brassard, Elvidge Munene, St-Pierre, Guenther, et al. 2022; Brassard, Elvidge Munene, St-Pierre, Gonzalez, et al. 2022). Of note, when no foods, beverages or energy is reported, ratios are not calculated and a score of 0 is assigned to the corresponding components.

Suggested Layout for the Input Dataset

The scoring algorithm should ideally be applied to a dataset in the “long” format, where observations are rows and dietary constituents are columns. Other layouts are also possible.

Participants Food1 Food2 Food3 Food…
1 2 1 9
2 4 4 5
3 2 7 6
4 5 4 5
5 6 4 2

SAS and R versions of the scoring algorithm are available. Both versions will yield the same HEFI-2019 scores and output when applied to the same data.

SAS Version

A detailed example application of the HEFI-2019 for the Canadian Community Health Survey 2015 - Nutrition is presented in the Example_SAS_cchs folder.

The SAS code illustrates how to prepare data and how to calculate HEFI-2019 scores according to the population ratio method (Freedman et al. 2008) as well as based on measurement error-corrected dietary intakes using the National Cancer Institute multivariate method (Zhang et al. 2011).

R Version

A detailed example application of the HEFI-2019 for the Canadian Community Health Survey 2015 - Nutrition is presented in the Example_R_cchs folder.

The R code illustrates how to prepare data and how to calculate HEFI-2019 scores according to the population ratio method (Freedman et al. 2008) as well as based on measurement error-corrected dietary intakes using the National Cancer Institute multivariate method (Zhang et al. 2011).

A simple application for the R version is shown below.

Installation

You can install the released version of the hefi2019 from GitHub with:

devtools::install_github("didierbrassard/hefi2019")

Basic example

The scoring algorithm is used by indicating the name of the input data set and the name of each variable representing dietary constituents of the HEFI-2019. In the case where a given dietary constituents was not reported in an entire sample, a 0 can be assigned to that variable. Upon execution, the title of the function is displayed.

# Install the hefi2019 scoring algorithm from GitHub, if not already done
devtools::install_github("didierbrassard/hefi2019")

# Load library
library(hefi2019)

# Apply the scoring algorithm to user-provided data
mydata_scored <- 
  hefi2019(indata             = mydata,
           vegfruits          = "RA_vegfruits",
           wholegrfoods       = "RA_wholegrfoods",
           nonwholegrfoods    = "RA_nonwgfoods",
           profoodsanimal     = "RA_profoodsanimal",
           profoodsplant      = "RA_profoodsplant",
           otherfoods         = "RA_otherfoods",
           waterhealthybev    = "G_waterhealthybev",
           unsweetmilk        = "G_milk",
           unsweetplantbevpro = "G_plantbevpro",
           otherbeverages     = "G_otherbeverages" ,
           mufat              = "G_mufa" ,
           pufat              = "G_pufa" ,
           satfat             = "G_sfa" ,
           freesugars         = "G_freesugars",
           sodium             = "MG_sodium",
           energy             = "energy"
           )
## Healthy Eating Food Index-2019 Scoring Algorithm R version 1.5

Scoring Algorithm Output

Density of intakes

The scoring algorithm creates 10 variables for density of intakes: RATIO_VF, RATIO_WGTOT, RATIO_WGGR, RATIO_PRO, RATIO_PLANT, RATIO_BEV, RATIO_UNSFAT, RATIO_FA, SFA_PERC, SUG_PERC, and SODDEN.

Total HEFI-2019 and its components

The variable corresponding to the total HEFI-2019 is HEFI2019_TOTAL_SCORE and the 10 variables corresponding to each component of the HEFI-2019 are HEFI2019C1_VF, HEFI2019C2_WHOLEGR, HEFI2019C3_GRRATIO, HEFI2019C4_PROFOODS, HEFI2019C5_PLANTPRO, HEFI2019C6_BEVERAGES, HEFI2019C7_FATTYACID, HEFI2019C8_SFAT, HEFI2019C9_FREESUGARS, and HEFI2019C10_SODIUM.

Selected Publications: Research Uses of the HEFI-2019

Epidemiology & Health Outcomes Research

Nutrition Surveillance

Randomized Controlled Trials

Sustainability

Validation Research and Methods

References

Brassard, D., L. A. Elvidge Munene, S. St-Pierre, A. Gonzalez, P. M. Guenther, M. Jessri, J. Vena, et al. 2022. “Evaluation of the Healthy Eating Food Index (HEFI)-2019 Measuring Adherence to Canada’s Food Guide 2019 Recommendations on Healthy Food Choices.” Journal Article. Appl Physiol Nutr Metab. https://doi.org/10.1139/apnm-2021-0416.

Brassard, D., L. A. Elvidge Munene, S. St-Pierre, P. M. Guenther, S. I. Kirkpatrick, J. Slater, S. Lemieux, et al. 2022. “Development of the Healthy Eating Food Index (HEFI)-2019 Measuring Adherence to Canada’s Food Guide 2019 Recommendations on Healthy Food Choices.” Journal Article. https://doi.org/10.1139/apnm-2021-0415.

Freedman, L. S., P. M. Guenther, S. M. Krebs-Smith, and P. S. Kott. 2008. “A Population’s Mean Healthy Eating Index-2005 Scores Are Best Estimated by the Score of the Population Ratio When One 24-Hour Recall Is Available.” Journal Article. J Nutr 138 (9): 1725–29. https://doi.org/10.1093/jn/138.9.1725.

Zhang, S., D. Midthune, P. M. Guenther, S. M. Krebs-Smith, V. Kipnis, K. W. Dodd, D. W. Buckman, J. A. Tooze, L. Freedman, and R. J. Carroll. 2011. “A New Multivariate Measurement Error Model with Zero-Inflated Dietary Data, and Its Application to Dietary Assessment.” Journal Article. Ann Appl Stat 5 (2B): 1456–87. https://doi.org/10.1214/10-AOAS446.

About

Healthy Eating Food Index 2019 scoring algorithm (Canada's Food Guide 2019)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors