essential8
Reproducible Cardiovascular Health Metric Scoring
Provides a reproducible R implementation of the American Heart Association Life's Essential 8 cardiovascular health scoring framework for complete adult records from people aged 20 years or older. Calculates the eight component scores and their unweighted composite score using the 2022 adult definition described by Lloyd-Jones et al. (2022) <doi:10.1161/CIR.0000000000001078>.
README
# Adult LE8 example fixture `le8-adult-example.csv` contains 10 hypothetical adults with complete raw MEPA and adult LE8 input data. It contains no observations from real people. Columns beginning with `expected_` are literal, manually calculated expectations derived from the adult AHA 2022 scoring table. They are not inputs to `score_le8()`. This includes `expected_mepa_total`, the manually calculated sum of the 16 raw screener criteria. The package tests remove those columns, score the raw inputs, compare all eight component scores and the exact composite with the literal expectations, and separately verify the fixture's component-sum arithmetic. Rows exercising a discretionary AHA rule use an explicit `apply_` flag. A `TRUE` value asserts that the caller has already adjudicated every clinical condition named by that flag; the package does not infer those conditions.
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
0.1.0 |
rolling linux/jammy R-4.5 | essential8_0.1.0.tar.gz |
196.8 KiB |
0.1.0 |
rolling linux/noble R-4.5 | essential8_0.1.0.tar.gz |
196.7 KiB |
0.1.0 |
rolling source/ R- | essential8_0.1.0.tar.gz |
161.0 KiB |
0.1.0 |
latest linux/jammy R-4.5 | essential8_0.1.0.tar.gz |
196.8 KiB |
0.1.0 |
latest linux/noble R-4.5 | essential8_0.1.0.tar.gz |
196.7 KiB |
0.1.0 |
latest source/ R- | essential8_0.1.0.tar.gz |
161.0 KiB |
0.1.0 |
2026-04-23 source/ R- | essential8_0.1.0.tar.gz |
0 B |