Score and Plot the Healthy Eating Index from NHANES Data
Overview
Calculate and visualize Healthy Eating Index (HEI) scores from National Health and Nutrition Examination Survey 24-hour dietary recall data utilizing three methods recommended by the National Cancer Institute (2024) https://epi.grants.cancer.gov/hei/hei-methods-and-calculations.html#:~:text=To%20use%20the%20simple%20HEI,the%20total%20scores%20across%20individuals.. Effortlessly analyze HEI scores across different demographic groups and years.
- Removed redundant plot titles
- Changed bold font axis labels to regular text
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 4
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Commits over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/abhrastat/heiscore on 2026-10-18.
Dependencies
Installing heiscore adds 94 packages (47 with compiled code, 90 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, bslib 5.6 MB.
Code & Tests
People & History
Package metadata
- First published
- 2024-05-10
- Total releases
- 4 / 2 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 2.10
- Download size
- 5.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("heiscore")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.