Methods

Status: Gate 1 decisions recorded in docs/DECISIONS.md. Independent methods review (Gate 3) is still required before public launch. Numbers are in docs/VALIDATION_REPORT.md and the release files; none are typed here.

Estimand

For each metric, prespecified adult age band (20–29, 30–39, 40–49, 50–59, 60–69, 70–79, 80+ combined) and recorded sex domain (RIAGENDR: male, female, and both combined), the survey-weighted finite-population distribution in the US civilian noninstitutionalized population, August 2021–August 2023, summarised by the weighted mean and the weighted P10, P25, P50, P75 and P90, each with a 95% confidence interval. This is a cross-sectional comparison between age groups. It is not a within-person trajectory and it does not estimate a causal effect of age.

Population and exclusions (applied identically to every metric)

Rule Implementation Rationale
Adults only RIDAGEYR >= 20 v1 scope; pediatric interpretation differs
80+ is one group RIDAGEYR == 80 means 80 and over (top code); never split, never joined to 70–79 by a line DEMO_L top-coding
Pregnant excluded RIDEXPRG == 1 (released for women aged 20–44 only) Pregnancy shifts body measures, BP and lipids. Matches NCHS DB508 (obesity); differs from NCHS DB515 (lipids), which includes pregnant women (effect quantified in the validation report)
Component weight > 0 WTMEC2YR (BMX_L, BPXO_L); WTPH2YR (TCHOL_L, HDL_L, GHB_L) Codebook instructions; phlebotomy weight adjusts for blood-draw non-response
Missing analyte excluded from the domain, counted by reason; never imputed or set to zero Brief §6
Plausibility range wide physiological bounds per metric (ingest/build_analytic.py); excluded 0 rows in this cycle guard only
Extreme valid values retained BMX_L notes leave this to the analyst; no trimming in v1
Blood pressure mean of the available oscillometric readings 1–3 (at least 1 needed) BPXO_L protocol; NCHS convention averages available readings

Variance estimation

Estimators

Reliability rules (config/quality_thresholds.yaml, version 1.0.0)

NCHS has no presentation standard for means or percentiles (SR2-175 and SR2-200 cover proportions, rates and counts). The project therefore uses (i) the NCHS mean RSE ≥ 30% rule, (ii) the SR2-175 rules applied by analogy, and (iii) documented extensions of its own: * All estimates: n ≥ 30; ≥ 2 PSUs; df_dom < 8 → suppressed; item missingness ≥ 15% → review flag. * Means: RSE < 30%; n_eff ≥ 30. * Percentiles: n × min(p, 1 − p) ≥ 10; the SR2-175 checks applied to the CDF value at the quantile (n_eff ≥ 30, Korn–Graubard CI width < 0.30, and relative width ≤ 130% when width > 0.05). Relative width is taken against min(p̂, 1 − p̂) so that P10 and P90 are treated symmetrically (a project extension). The quantile RSE must be < 30%, and percentiles must be monotone within a cell (otherwise the build fails). * Suppressed or withheld cells are exported with null numbers and a reason code.

Independent verification

  1. Engine cross-check: analysis/py_survey.py re-implements every estimator from its definition in NumPy and must match R survey to a relative tolerance of 1e-8, with the same NaN pattern, on every row. The release build fails otherwise.
  2. External benchmarks: analysis/reference_checks.R reproduces 48 published NCHS crude prevalence estimates (DB508, DB515) from the raw XPT files. analysis/benchmark_sr3_50.py compares adult BMI and waist means, SEs and percentiles with NCHS Series 3 No. 50. Means and SEs match exactly. Percentiles differ only through the quantile rule (validation report §3b). The release uses a tie-exact hf4 rule (D2).
  3. Regression anchors: 48 locked estimates in tests/fixtures/locked_estimates.csv.

Known limitations

The class field in the pattern screen results

In screen-v1.0.0/screen_results.csv, the 17,003 results with no clear pattern have the class null. It means the result was tested and did not pass the false-discovery threshold (q ≤ 0.05; the lowest such q is 0.0502). Some CSV readers, pandas among them, turn the text null into a missing value by default, so the field can look empty; read the column as text (in pandas, keep_default_na=False) to keep it. The v1.0.0 file is a frozen release and is not changed.

Metric decisions, release 2

Release rc2 · added 2026-11-07

All rules below were written and frozen in data/qa/rc2_metric_prespecification.md (SHA-256 in data/qa/rc2_prespec_freeze.json) after the rc2 files and codebooks were downloaded and parsed and before any rc2 analytic table or estimate was computed. Codebook facts are taken programmatically from the checksummed codebooks (ingest/codebook_extract.py → data/qa/codebook_extract.json; registry entries written by ingest/update_metric_registry.py). All rc1 rules apply unchanged (adults 20+, RIDEXPRG == 1 excluded, component weight > 0, domain estimation on the full design, domain df, HF4 percentiles with Woodruff CIs, Korn–Graubard proportions, thresholds v1.0.0, 10-year bands plus top-coded 80+, no imputation, no trimming). Analytic n, suppression counts and benchmark results are reported in docs/VALIDATION_REPORT.md §5 and data/aggregates/nhanes-2021-2023-v1.0.0-rc2/metrics.csv; they are not repeated here.

Weights. Exam measures (weight, height, pulse, liver elastography) use WTMEC2YR. Blood analytes (hemoglobin, creatinine, 25OHD, hs-CRP) use WTPH2YR from the component file. Fasting analytes (triglycerides, glucose) use the fasting-subsample weight WTSAF2YR from the component file; the codebook defines WTSAF2YR = 0 as "No Lab Result or Not Fasting for 8 to <24 hours", and the build verifies against FASTQX_L that every in-domain respondent fasted 8 to < 24 h. Sleep hours, a home or telephone CAPI interview item, use the interview weight WTINT2YR. Each design is built on everyone with a positive value of that metric's weight.

Metric-specific decisions. * Body weight, standing height: as recorded. Clothing or appliance comments and "not straight" comments are retained, as for BMI. Height differences between age bands mix birth-cohort (secular) differences with height loss; cross-sectional data cannot separate them. * Pulse rate: mean of the available oscillometric readings 1–3 (≥ 1 required), the same rule as blood pressure. Not adjusted for medication. * Hemoglobin: measured value; no smoking or altitude adjustment. NCHS Data Brief 519 adjusts for smoking (WHO 2024), so its anemia prevalence is not directly comparable. * Serum creatinine: published; eGFR is not published, because age is an input to the CKD-EPI equation and an eGFR age gradient would be partly built in by construction. Creatinine also reflects muscle mass. The codebook's analyser bridging study recommends no adjustment. * 25-hydroxyvitamin D: total LBXVIDMS (25OHD2 + 25OHD3). Season of examination and supplement use are not adjusted for. * hs-CRP: no infection or acute-inflammation exclusion (none is applied to any metric, and no contemporaneous infection measure exists). Values > 10 mg/L may reflect acute inflammation. Values below the LLOD (0.15 mg/L) carry the NCHS fill value LLOD/√2 and stay in the mean; any percentile estimate below the LLOD is suppressed (BELOW_LLOD_FILL), and a CI bound below the LLOD is withheld. The distribution is strongly right-skewed, so a log-scale display is recommended (display_scale: log). * Fasting triglycerides: the reference-method LBXTLG from TRIGLY_L, not BIOPRO_L LBXSTR, as the codebook directs. Context: cholesterol-lowering medication. * Fasting glucose: LBXGLU. Context: diabetes medication. This is a smaller subsample than the exam sample, so intervals are wider and suppression is more frequent. * Liver stiffness and CAP: complete exams only (LUAXSTAT == 1). The codebook defines a complete exam as fasting ≥ 3 h, ≥ 10 complete stiffness measures and IQRe/median < 30%, and the build asserts the last two conditions on every in-domain row. Partial, ineligible and not-done exams are excluded and counted as item non-response. LUX eligibility already excludes people who cannot lie down, people with implanted electronic devices, people with right-side lesions or bandages, and pregnant women. No CAP-specific IQR filter is applied because the codebook defines none. CAP is bounded by the device range (100–400 dB/m). * Sleep hours: SLD012 (usual sleep on weekdays or workdays, derived by NCHS from reported sleep and wake times, half-hour resolution). Flagged measured_or_reported: reported. Codes 2 (< 3 h) and 14 (≥ 14 h) enter the mean at their coded values; percentiles equal to a code are suppressed (AT_TOP_OR_BOTTOM_CODE). Pregnancy is known only for MEC-examined women aged 20–44, so interview-only respondents are retained. This measures self-reported usual sleep, not sleep physiology.

Engine change applied to all metrics. n_eff for a percentile is now undefined (NA) when the estimated CDF at the quantile is degenerate (p̂ = 0 or 1). In R this happened for one single-year stress cell, where the floating-point variance was not exactly zero. No rc1 cell is degenerate, and every rc1 number is unchanged (tested).

Not added. eGFR (see above); LDL cholesterol (equation choice pending); ferritin (eligible sample limited to children and women 12–49); balance (ages 20–69 only); grip strength (no 2021–2023 file).

Benchmarks. Series 3 No. 50 Tables 3 and 7 (weight, height), Data Brief 516 (diabetes; exercises fasting glucose, WTSAF2YR and the fasting rule) and Data Brief 519 (anemia; exercises hemoglobin and WTPH2YR). These are parsed programmatically from the checksummed publications by analysis/benchmark_rc2_parse.py. No published NCHS August 2021–August 2023 distributions were found for pulse, creatinine, 25OHD, hs-CRP, triglycerides, liver stiffness, CAP or sleep; for those metrics the R/NumPy agreement and the codebook-rule assertions are the evidence.

Publication changes, release 3

Release rc3 · added 2026-11-07

rc3 publishes exactly the rc2 estimates. Every estimate, SE, CI, n, n_eff, df, quality flag and reason in the published age-band grid is byte-identical to rc2, and this is tested. Only what is published changed, in response to the internal audit (docs/audit/findings.json): * Single-year stress rows are not published (A-C3-01). The age-79 single-year domains test the suppression rules; they are not estimates for readers. From rc3 they are written only to data/qa/single_year_stress_rc3.csv. The frozen rc1 and rc2 files still contain them, labelled domain_type = single_year_stress, and no page shows them. * Event counts are withheld for suppressed treatment-context cells (A-C2-01). The ratio n_events / n_raw would give a crude estimate of a suppressed share. * Metadata kept on suppressed cells (A-C2-02): n_raw, n_nonmissing, n_missing_value, n_eff, design_df and quality_reasons. These are the inputs to the suppression rules, so they are needed to explain why a cell is withheld, and none of them reveals the estimate. n_eff is the effective sample size the NCHS proportion standard uses to decide suppression. * Population per metric (A-C6-03). The population column of distributions.csv and metrics.csv now names the sample each estimate comes from: * examination sample; * blood-test (phlebotomy) sample; * fasting subsample (fasted 8 to under 24 h); * household interview sample for sleep; * for liver elastography, the eligible population with complete exams. Elastography eligibility excludes some groups, and the examination weights are not adjusted for incomplete exams, so these two metrics describe a narrower population than the others. * Reader-facing caveats (A-C8-01). metrics.csv gains public_caveats in plain language; caveats keeps the analyst notes. The audit's proposal was checked sentence by sentence against the checksummed codebooks. Corrections and their reasons are listed in data/qa/public_caveats_review.csv, and quoted percentages and counts are computed from the release by ingest/apply_public_caveats.py. The main corrections: * blood pressure: the auscultatory method was used up to 2017–2018, not "before 2017"; * fasting glucose: the GLU_L codebook does not restrict it to the morning session; * sleep: hours are derived from reported fall-asleep and wake times; * hs-CRP: the bridging study compares this cycle's analyser with the one used for 2017–March 2020; * liver CAP: the device range is 100–400 dB/m; "capped by the device" was removed as unsourced. * distributions.json now stores floats that round-trip exactly. The rc2 JSON was rounded to 10 decimal places; the rc2 CSV and parquet files are exact.

Shares in guideline categories, release 4

Release rc4 · added 2026-11-09

Estimand. For each measure with verified cut-points in config/reference_ranges.yaml, the survey-weighted share of each age band × sex domain whose recorded value falls in each category, and in each named group of categories (for example hypertension = Stage 1 + Stage 2). The respondents, weights, design and exclusions are those of the release (data/interim/analytic_<metric>.parquet); domains are formed by subset() of the full design.

Classification. Values are classified as recorded. Blood pressure is the mean of the available readings at one visit. Categories are [lower, upper) unless the inclusive flags in the yaml say otherwise. Waist is classified by the cut-point for each person's own sex, and the classified people are pooled for sex = all. Sleep is limited to the 20–29 to 50–59 bands (the AASM/SRS recommendation covers adults aged 18–60), so it has no 20+ row. The South Asian and Asian toggles are display-only and get no shares. Each in-domain respondent falls in exactly one category; both engines assert this.

Joint blood pressure. The AHA/ACC 2025 Table 4 rows are quoted verbatim in the yaml: "Elevated 120 to 129 mm Hg and <80 mm Hg; Stage 1 130 to 139 mm Hg or 80 to 89 mm Hg; Stage 2 ≥140 mm Hg or ≥90 mm Hg". Because the rows use "and" and "or", the classification is fully determined, and it gives each person the higher of the two numbers' categories: Stage 2 if either number reaches Stage 2, else Stage 1 if either number is in Stage 1, else Elevated if the top number is 120–129, else Normal. The yaml does not quote the Normal row; Normal is the remaining case (top < 120 and bottom < 80), the same as the systolic strip's Normal. Published as metric_id = blood-pressure-joint with ids bp-joint-*.

Uncertainty and suppression. * Intervals are Korn–Graubard (svyciprop(method = "beta"), survey 4.5). Its effective-n adjustment uses nrow(subset) − 1 and degf(subset); the NumPy engine reproduces this exactly. * Suppression applies the SR2-175 rules exactly as for treatment_context.csv since rc1: n < 30, effective n < 30, df < 8, absolute width ≥ 0.30, relative width > 130% when the width exceeds 0.05, and zero or all events. * Secondary suppression (lead decision, 2026-11-09). The site draws stacked bars, so a lone withheld category would show as the remaining gap. Within each age band × sex: * if exactly one category fails a reliability rule, the smallest other category is also withheld; * further categories, or groups, are then withheld one at a time until no withheld category or group is a linear combination of the published categories, the published groups and the sum to 1. The check is a rank test in the export; the tests repeat it with exact rational arithmetic. * These cells are flagged suppressed_secondary, with reason "protects a suppressed neighbour". * In category_treatment_context.csv, a row whose category share is withheld is withheld too. In any age band × sex with a withheld share, n, effective n and df are withheld on every row, because the number of people in each category would otherwise approximate the withheld share.

Medicine within categories. category_treatment_context.csv gives the share reporting the relevant medicine among people in each category, using the same medication variables as treatment_context.csv. The joint blood-pressure category uses the blood-pressure medicine variable.

Benchmarks. * Data Brief 508 (BMI ≥ 30 and ≥ 40, pregnant women excluded, as in the atlas) and Data Brief 515 (total cholesterol ≥ 240 mg/dL and HDL < 40 mg/dL) are reproduced with each brief's own rules. Data Brief 515 uses one sample with both lipids present and includes pregnant women. * Data Brief 516 is not comparable with an HbA1c-only category. Its "total diabetes" combines a diagnosis by a health professional with fasting glucose ≥ 126 mg/dL or HbA1c ≥ 6.5% in the fasting subsample; it is reproduced separately in rc2. * NCHS hypertension prevalence counts measured pressure or current medication, so it is not comparable with a measured-pressure category.

Hemoglobin and hs-CRP (added to rc4, 2026-11-09). * Hemoglobin is classified by the WHO 2024 cut-points for each person's own sex, then pooled. The cut-points are set for ages 15–65, so hemoglobin is published only for the 20–29 to 50–59 bands. The group anaemia is mild, moderate or severe. * hs-CRP uses the AHA/CDC 2003 relative-risk categories: Low below 1.0, Average from 1.0 to 3.0 inclusive, High above 3.0. Values below the detection limit carry the LLOD/√2 fill (about 0.11 mg/L), which falls in Low, so the fill does not affect any category. * A context share above 10 mg/L (category_type = context, id above-10) is a subset of High. It lies outside the partition, so it is not part of the sum to 1 or of the secondary-suppression test; it can never reveal a withheld category.

Laboratory and examination measures, waves A and B

Release rc5 · added 2026-11-09

Rules are frozen in docs/PRESPEC_RC5.md (SHA-256 in data/qa/rc5_prespec_freeze.json); the estimators are the rc1-rc4 functions, evaluated unchanged by analysis/survey_estimates_rc5.R (R reference) and analysis/py_survey_rc5.py (NumPy). * Detection limits. A value is below the limit when its comment variable is 1. In each age band × sex cell, Pp is published only if the weighted share below the limit is under p − 0.05; the mean only if that share is at most 0.40 (adapted from the National Exposure Report rule for geometric means); CI bounds below the limit are withheld. An analyte with a publishable percentile in fewer than half its cells is published only as the share at or above the limit (Korn–Graubard, rc4 suppression). The limit is the codebook's stated LLOD, checked against every fill value (LLOD/√2) to the fill's printed rounding. * Serology and balance are shares only. Balance: passed condition k on trial 1 or 2; people whose test ended at an earlier condition count as not passing; ineligible or not done are excluded; ages 20–69 only. * Several methods for one analyte. All are published; one is the display measure: Martin–Hopkins for LDL cholesterol (the 2026 ACC/AHA guideline prefers Martin–Hopkins or NIH equation 2 over Friedewald; the choice between them is the project's) and the FOLATE_L whole-blood assay for RBC folate. * Weights. Component weights; WTPH2YR, identical across all phlebotomy files, is merged by SEQN for COT_L and BCHE_L; urine (ALB_CR_L) uses WTMEC2YR; PFAS and VOCs use their one-half subsample weights with the design built on everyone with a positive weight (design df 15 asserted). * Display scale is log where the codebook range spans 100-fold or more. * Not published: albuminuria and cotinine-exposure categories (cut-points not yet verified), contrasts of means and single-year stress domains for rc5 measures.

Questionnaire items, wave C

Release rc6 · added 2026-11-09

Rules are frozen in docs/PRESPEC_RC6.md; the estimators are the rc1-rc5 functions (R reference and NumPy, HWA_TAG=rc6). * Who was asked. Each item's universe is its codebook target (ages, sex) minus everyone the questionnaire routed past it: codebook skip instructions, explicit rules for routing that depends on several earlier answers, and routing observed in the data; every rule is checked so that nobody outside the universe has a recorded answer. The universe is stated in words with every share. * Refused, don't know, no answer are excluded from the denominator and counted per cell. Shares use Korn–Graubard intervals, NCHS SR2-175 suppression and the rc4 secondary suppression. * Composites. PHQ-9 severity (Kroenke et al. 2001 bands; group "10 or more" as in NCHS Data Brief 527), leisure-time aerobic guideline met (2018 Physical Activity Guidelines; moderate + 2 × vigorous minutes ≥ 150 a week), cigarette smoking status (NCHS definition). * Wording. Every share is self-report ("Said …"); household items describe the household; demographic items are population context.

Earlier-survey ageing releases, wave E

Added 2026-11-09

Rules are frozen in docs/PRESPEC_E.md. Each earlier NHANES cycle is a separate release with its own weights and design (design df asserted per cycle: 17 for 2011-2012, 15 for 2013-2014); cycles are never pooled and no estimate is compared with August 2021-August 2023 or another cycle until a compatibility check is prespecified. Grip strength uses the codebook's combined grip (largest reading per hand, summed) for people tested with both hands; cognitive scores are published for ages 60 and over, DXA for 20-59 (the component's eligibility), and the physical-functioning difficulty items for 60 and over, the ages at which everyone was asked (codebook check item PFQ.059A). Estimators, suppression and the R/NumPy cross-check are those of the 2021-2023 releases.

Earlier-survey ageing releases, addendum 2

Added 2026-11-10

Rules frozen in docs/PRESPEC_E_ADDENDUM_2.md before the data were downloaded. Each cycle is a separate release with its own two-year weights and design; the 4-year weights of 1999-2002 are not used because cycles are never combined. Age is top-coded at 85 in 1999-2006 and at 80 from 2007 (DEMO codebooks, checked against the data); the oldest band 80+ includes everyone recorded at 80 or over, and its age_band_label states the cycle's top-code. The 1999-2002 cognitive measure is the WAIS-III Digit Symbol-Coding module given in the household interview (number correct in 120 seconds; interview weight; ages 60+; proxies ineligible). It is a different test, setting and weighting from the 2011-2014 examination-centre Digit Symbol Substitution Test and is published under its own id. People not tested are counted by reason (CFD010, CFD030, CFD040, CFD050). Physical functioning uses the 2011-2014 rules: the two routing check items are verified verbatim in each codebook, and PFQ061A-T are published for ages 60+ only. Whole-body DXA 2015-2018 uses complete scans (DXAEXSTS = 1). Deferred: DXA 1999-2006 (multiply imputed; combining rules not implemented), PFQ 1999-2002 (different item set). Benchmark substitute: every codebook frequency row of every analysed variable is reconciled with the XPT counts.

Value lookup and distribution shapes

Status: five builds. * data/aggregates/shapes-dev/: frozen development build, rc1 snapshot, 7 metrics, schema 1.0. * data/aggregates/nhanes-2021-2023-v1.0.0-rc2-shapes/: release-candidate build, rc2 analytic tables, 19 metrics, schema 1.1. Its 7 rc1 metrics are identical to shapes-dev apart from ids, versions and timestamps (tested). * data/aggregates/nhanes-2021-2023-v1.0.0-rc3-shapes/: re-export of the rc2 engine outputs against release rc3. The engines were not re-run, and the analytic-table SHA-256 values were verified first. It is identical to rc2-shapes except for release references, ids, timestamps and the rc3 population text (tested). * data/aggregates/nhanes-2021-2023-v1.0.0-rc4-shapes/: re-export of the same engine outputs against release rc4, whose distributions are byte-identical to rc3. It uses lookup rule v2 (section 5) and schema 1.2. Every estimate, CI and flag is identical to rc3-shapes; only ids, the lookup rule, its messages and the derived lookup flags and ranges differ (tested). * data/aggregates/nhanes-2021-2023-v1.0.0-rc5-shapes/: the rc4-shapes files for the 19 rc1-rc4 measures, copied byte for byte, plus the 133 rc5 measures published as distributions (expanded_* files, section 7). Covered by the Gate 3 independent methods review like the rest of the atlas. This document contains no computed numbers; they live in shapes_manifest.json, interpolation_check.csv and the CSV/JSON files.

1. What is estimated

For each metric, each domain = age band (20–29, 30–39, 40–49, 50–59, 60–69, 70–79, 80+ combined, and 20+ = all adults) × recorded sex (all, female, male), using exactly the release population, exclusions, component weight and design (docs/SCIENCE_METHODS.md; Taylor linearisation, SDMVSTRA/SDMVPSU, nest = TRUE, domains by subsetting the full design, df_dom = #PSU − #strata with domain observations):

Output Estimand Interval
Histogram (shapes_histogram.csv) weighted share of the domain with lower ≤ value < upper, for fixed bins Korn–Graubard 95% (svyciprop(method = "beta"))
Quantiles (shapes_quantiles.csv) weighted P5, P10, …, P95 with the release rule (tie-exact Hyndman–Fan type 4, D2) Woodruff 95% with t(df_dom)
CDF (shapes_cdf.csv) F(v) = weighted share of the domain with value ≤ v, on a grid Korn–Graubard 95%

Every share and CDF value is a domain mean of a 0/1 indicator, so its linearised variance is the release mean variance. The Korn–Graubard interval is the survey 4.5 formula: n_eff = p(1−p)/Var(p), multiplied by (t₀.₀₂₅,ₙ₋₁ / t₀.₀₂₅,df)², then Beta quantiles; n is the domain sample size and df = df_dom (degf() of the subset design, asserted equal to df_dom). When nobody or everybody in the domain is at or below v (p = 0 or 1), the variance is set to exactly 0 and the interval is undefined. Both engines apply this guard because floating-point residue would otherwise differ between them; such cells are always suppressed.

The 80+ group is the top-coded RIDAGEYR = 80 group (80 and over). It is estimated on its own, never pooled with 70–79 and never interpolated: no estimate exists for any single age. age_to_band() maps any entered age ≥ 80 to "80+". tests/science/test_shapes.py checks that the published 80+ CDF equals a direct computation on RIDAGEYR == 80 respondents and differs from a 70+ pool.

2. Bins (config/shape_bins.yaml)

One scheme per metric, shared by all domains so that shapes are comparable across age bands. Bins are left-closed [lower, upper). Two open-ended bins sit at the ends: (−∞, first edge) and [last edge, +∞).

Rule (implemented in analysis/shapes.py --derive-bins; the YAML is that output, and a test re-derives it): 1. Admissible widths are {1, 2, 2.5, 5} × 10ᵏ that are integer multiples of the recorded resolution. This avoids saw-tooth artefacts: a 0.25%-wide HbA1c bin would alternately contain 2 or 3 recordable values. 2. Inner edges are multiples of the width, plus an offset in steps of edge_grain, rounded outward from the weighted P1 and P99 of all adults (20+, both sexes). The rule allows 15–28 inner bins, so at most 30 bins in total. 3. Among admissible choices, prefer the one that places the most reference_cut_points on edges, then the smallest width, then offset 0. The cut points (for example 200/240 mg/dL total cholesterol, 5.7/6.5% HbA1c, BMI 25/30) are widely reported. Aligning edges with them helps readers orient. They are not presented as targets. Waist has no cut points because the sex-specific 88/102 cm cannot both fall on any admissible edge set. 4. If no width gives 15–28 inner bins over P1–P99, the rule falls back. This applies only to HbA1c, which has a long right tail. It takes the smallest width whose 28 inner bins cover P1–P97.5 and truncates the long tail. The open-ended last bin then holds more than 1% of adults, and its share is published like any other bin. 5. The P1/P99 values themselves are never published (never_published rule); only rounded edges are.

Recorded resolution and stray digits: * Body weight and vitamin D are recorded to 0.1. One adult value in each rc2 table has two decimals (62.87 kg; 9.13 nmol/L, below the first bin edge). 0.1 is treated as the recorded resolution. * These values are still estimated exactly: F(v) at grid points is the exact share with value ≤ v, and the value simply lies between two grid points. * The lookup rounds entered values to 0.1, and interpolation_check.csv counts such values separately (n_off_resolution_values).

2b. Log-scale metrics (prespecified before the rc2 shapes were computed)

Metrics with display_scale = log in the release (hs-crp, triglycerides-fasting, liver-stiffness) are strongly right-skewed. With linear bins, 15–28 bins over P1–P99 put most adults in 2–3 bins. Their bins (scale: log in config/shape_bins.yaml) follow a different rule: 1. Inner edges are consecutive values of one prespecified round series per decade (× 10ᵏ). The series are nested: * LOG6 = 1, 1.5, 2, 3, 5, 7; * LOG10 = 1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8; * LOG20 = 1, 1.1, 1.2, 1.3, 1.5, 1.7, 2, 2.2, 2.5, 2.7, 3, 3.5, 4, 4.5, 5, 5.5, 6, 7, 8, 9.

Successive values differ by a factor of 1.33–1.67 (LOG6), 1.20–1.33 (LOG10) and 1.10–1.18 (LOG20). 2. Only series values that are exact multiples of the recorded resolution are eligible. Each edge is therefore an exact grid value. 3. Edges are rounded outward from the adult (20+, both sexes) weighted P1 and P99 to series values. The coarsest series giving 15–28 inner bins is used. A test checks that every coarser series gives fewer than 15. 4. Reference cut points do not influence log bins. They happen to fall on edges for hs-CRP (1, 3 mg/L, in every series) and triglycerides (150 mg/dL). 5. The website draws a log x-axis. Bar height is density per unit log10(value) = share / (log10(upper) − log10(lower)), so that bars of unequal log width are comparable (density_basis in the JSON). Linear metrics use share / (upper − lower). Open-ended end bins have no density; they are shown as shares. 6. The CDF grid, quantiles and lookup are unchanged. The grid is still every recordable value, so the lookup is exact on either axis scale.

3. CDF grid

Each grid value is k / grid_denominator for every integer k between the first and last inner bin edge, where grid_denominator = 1 / recorded resolution: * 10 for BMI, waist and HbA1c (recorded to 0.1); * 1 for total and HDL cholesterol (integer mg/dL); * 6 for blood pressure, whose values are the mean of 1–3 integer readings and therefore multiples of 1/6 mmHg.

Every value that NHANES can record inside the range is therefore a grid point, and every bin edge is a grid point. The values k/den are the correctly rounded doubles of the rationals, which makes them bit-identical to the stored source values. The R engine rebuilds them as numerator/denominator rather than parsing decimal text: a 1-ulp parsing difference would flip ties in 1[value ≤ v].

4. Reliability and suppression

Coded values (coded_values in the bins YAML and the JSON) are recorded values that stand for a range of true values [lower, upper]:

Metric Code Range of true values Reason code
hs-crp 0.11 (NCHS fill LLOD/√2) below the LLOD 0.15 mg/L, [0, 0.15) BELOW_LLOD_FILL
liver-cap 100 device lower limit, ≤ 100 dB/m AT_TOP_OR_BOTTOM_CODE
liver-cap 400 device ceiling, ≥ 400 dB/m (values pile up here) AT_TOP_OR_BOTTOM_CODE
sleep-hours 2 SLD012 "less than 3 hours", [0, 3) AT_TOP_OR_BOTTOM_CODE
sleep-hours 14 SLD012 "14 hours or more", ≥ 14 AT_TOP_OR_BOTTOM_CODE

Rules: * A quantile whose estimate lies in a coded range is suppressed: it would be a code, not a value. This includes any liver-CAP quantile at 400 and any hs-CRP quantile below 0.15. * For hs-CRP only, confidence bounds below the LLOD are also set to null. This is exactly the release rule. * A CDF point v with lower ≤ v < upper is suppressed: 1[value ≤ v] cannot be evaluated for coded respondents. This affects liver-CAP at v = 400, where F would otherwise read 1, and hs-CRP below 0.15. * A bin whose range only partly contains a coded range would be suppressed (CODED_RANGE_SPLITS_BIN). None does: the coded ranges fall inside the open end bins, e.g. liver-CAP [400, ∞) is the last bin ("400 or more"). * These rules reproduce the rc2 release percentile rules (BELOW_LLOD_FILL, AT_TOP_OR_BOTTOM_CODE) and extend them to the device limits of CAP, which the release does not treat as coded. At the release's P10–P90 no published liver-CAP percentile is at 100 or 400, so the release cross-check is unaffected.

  • Domain rules (all outputs): n ≥ 30, ≥ 2 PSUs, df_dom ≥ 8, else every number in the domain is suppressed. Item missingness ≥ 15% → MISSING_GE_15PCT review flag (number still shown), as in the release.
  • Shares and CDF values are proportions, so NCHS SR2-175 is applied in full:
  • n_eff = min(n, p(1−p)/Var) ≥ 30 (NEFF_LT_30);
  • KG width < 0.30 (KG_WIDTH_GE_30);
  • if width > 0.05, width/p ≤ 1.30 (KG_RELWIDTH_GT_130).

SR2-175 sends three further cases to "statistical review": complement relative width > 1.30, df < 8, and p ∈ {0, 1}. The project has no clearance official (D3), so these are suppressed (KG_COMPLEMENT_RELWIDTH_GT_130_REVIEW, DF_LT_8, ZERO_OR_ALL_EVENTS_REVIEW). * Quantiles: the release percentile rules unchanged: n·min(p,1−p) ≥ 10, the SR2-175 check on F at the quantile, and quantile RSE < 30% (code copied from analysis/export_aggregates.py). P5 and P95 are not among the release's published percentiles; they follow the same rules. P0/P1/P99/P100 are never estimated. The export fails unless P10–P90 and domain n reproduce the frozen release exactly, including which cells are suppressed. * Suppressed cells have null numbers and a reason code, and n_raw_bin is also nulled for suppressed bins. No respondent-level data are written. * Build-failing checks: R/NumPy disagreement (rtol 1e-8, atol 1e-14, identical NaN pattern and integer counts on every row); shares in a domain not summing to 1 (|Σ − 1| > 1e-12); a decreasing CDF; a non-monotone quantile sequence; schema violation.

5. Value lookup (implemented in the data; reference functions analysis/shapes_export.lookup_value, lookup_message, lookup_technical)

Current rule: lookup rule v2 (lookup_rule.version = "2", schema 1.2.0-dev), used from nhanes-2021-2023-v1.0.0-rc4-shapes. Builds up to rc3-shapes carry rule v1 (section 5.4) and stay frozen; lookup_value dispatches on lookup_rule.version, so every build is read with its own rule.

5.1 Rule v2

Input: age band (from age, adults only; ≥ 80 → "80+"), recorded sex domain, value v.

  1. Round v to the recorded resolution (nearest k/denominator, halves up). Every recordable value is a grid point, so the result is read exactly at a grid value. Consumers that do not round must interpolate F, lo and hi linearly between the two adjacent grid values.
  2. Domain: if the domain is suppressed, or no quantile between P5 and P50 or between P50 and P95 is published, there is no result (unavailable).
  3. Support (unchanged from v1): [P5, P95] of the domain, narrowed to the most extreme published quantile when P5 (P95) is suppressed (supported_low_p / supported_high_p). Below the support the result is below_support, above it above_support.
  4. Answer whenever published: inside the support an answer is given whenever F and its Korn–Graubard limits at the grid value(s) used are published, i.e. pass NCHS SR2-175 (section 4), the project's reliability standard for proportions. A suppressed CDF value gives too_uncertain (CDF_SUPPRESSED). There is no further width cut.
  5. Always with its range: X = 100·F rounded to the nearest 5 (halves up); range ⌊100·lo/5⌋·5 to ⌈100·hi/5⌉·5. If X would round above 95 (below 5) the result is above_support (below_support) with reason ROUNDS_ABOVE_95 (ROUNDS_BELOW_5), as in v1.
  6. Less certain: when hi − lo > less_certain_width = 0.20 the answer carries less_certain: true and the sentence says so. It is still given.

Why: v1 refused whenever the 95% interval of F was wider than 0.10. In single age-band × sex groups this refused most in-support readings (table below), so most readers got no answer for their own group, even though every published CDF value already meets SR2-175. Under v2 the uncertainty is not hidden: it is carried by the range that is always shown, and by the less-certain flag. SR2-175 still bounds the width (< 0.30, and relative width ≤ 130% when the width exceeds 0.05).

5.2 Exact strings (rule v2)

Visible text (lookup_rule.messages, reference lookup_message) never contains "95%", "confidence", "interval" or "percentile". {group} = "{adults|women|men} aged {20–29 … 70–79}" (en dash), "… aged 80 and over" or "… aged 20 and over".

Result Text
supported "About {X} in 100 {group} had the same or a lower reading. The survey puts this between {X_lo} and {X_hi} in 100."
supported, X_lo < 5 "About {X} in 100 {group} had the same or a lower reading. The survey puts this at no more than {X_hi} in 100."
supported, X_hi > 95 "About {X} in 100 {group} had the same or a lower reading. The survey puts this at no fewer than {X_lo} in 100."
supported, both open "About {X} in 100 {group} had the same or a lower reading. The survey cannot narrow this down further."
less_certain (appended) " This is less certain because the survey measured fewer people in this group."
below_support "Only about {p_low} in 100 {group}, or fewer, had a reading this low."
above_support "Only about {100 − p_high} in 100 {group}, or fewer, had a reading this high."
above_support, ROUNDS_ABOVE_95 "More than 95 in 100 {group} had the same or a lower reading."
too_uncertain "The survey has too little information to place this reading for {group}."
unavailable "The survey measured too few {group} to place a reading."

The technical sentence for the drawer (lookup_rule.technical, reference lookup_technical) states F, the 95% Korn–Graubard interval, SR2-175, the rounding and, if set, the less-certain width.

Why each sentence is true: * "the same or a lower reading" is F(v), the share at or below v. * The less-certain sentence names the cause correctly. Wide intervals occur in small groups (single age band × sex), and within a group they are widest near the middle of the distribution, where most people are. So the cause is the size of the group, not how many people sit near the value. * "Only about p in 100 …, or fewer, had a reading this low": below the support, F(v) ≤ p_low/100 exactly. * Above the support the share at or above v can exceed 100 − p_high by a sliver. An interpolated P95 can sit in a gap between recorded values. The share still rounds to at most 100 − p_high at the reporting precision (nearest 5); this is checked for every domain in tests/science/test_shapes.py. * "this high" is not used for ROUNDS_ABOVE_95. With tied values the share at or above v can be large there, so that case states F instead.

5.3 Refusal rates before and after (computed)

analysis/shapes_lookup_rates.py writes lookup_refusal_rates.csv and lookup_refusal_rates_by_metric.csv in the rc4-shapes build; the tables below are generated from those files. Method: * For each domain, the grid values inside the lookup support are weighted by the survey-weighted share of the group recorded at that value: F(v) − F(previous grid value), from the full-precision engine CDF. * The refusal rate is the weighted share of in-support readings that get no answer. * "Width cut t" is v2 with a refusal at width > t. * Means are over domains; medians are given in brackets for v1.

Domains n v1: refuse if width > 0.10 width cut 0.15 width cut 0.20 width cut 0.30 v2 (no width cut) v2 flagged less certain
Age band × sex (women, men) 266 65.0% (median 69.8%) 24.9% 6.4% 0.6% 0.6% 5.9%
Age band, women and men together 133 29.0% (median 18.9%) 4.6% 0.4% 0.0% 0.0% 0.3%
All adults 20+ (women, men, both) 57 0.2% (median 0.0%) 0.0% 0.0% 0.0% 0.0% 0.0%

By metric (age band × sex domains, means):

Metric v1 refused v2 refused v2 less certain
bmi 67.6% 0.0% 1.7%
body-weight 63.6% 0.0% 1.6%
diastolic-bp 64.5% 0.1% 4.0%
fasting-glucose 93.4% 0.3% 28.5%
hba1c 73.5% 0.0% 4.0%
hdl-cholesterol 66.6% 3.7% 6.3%
hemoglobin 62.1% 0.2% 0.0%
hs-crp 63.6% 0.2% 9.4%
liver-cap 57.9% 0.0% 1.5%
liver-stiffness 58.5% 0.0% 3.7%
pulse-rate 60.5% 0.0% 0.4%
serum-creatinine 61.5% 0.0% 4.6%
sleep-hours 33.8% 0.0% 0.0%
standing-height 60.3% 0.0% 3.5%
systolic-bp 55.0% 0.1% 6.1%
total-cholesterol 70.8% 0.1% 4.3%
triglycerides-fasting 87.0% 5.7% 18.8%
vitamin-d-25ohd 69.8% 0.0% 8.3%
waist 64.6% 0.0% 5.0%

5.4 Rule v1 (builds shapes-dev, rc2-shapes, rc3-shapes)

Same steps 1–3 and 5. Step 4 additionally refused (CI_TOO_WIDE) when the KG interval of F was wider than max_ci_width = 0.10. Messages used percentile wording: "Approximately the {X}th percentile among US adults in this survey group ({group}). 95% confidence interval: {ci_low} to {ci_high} percentile." Here ci_low is "the {X_lo}th", or "below the 5th" when X_lo < 5, and ci_high mirrors it. The below/above-support message was "Below the {p_low}th percentile for {group} in this survey - too few people to place it more precisely."

Numerical verification (interpolation_check.csv): at every distinct recorded value inside the support of every domain, the published grid reproduces the exact design-based F up to the 6-decimal JSON rounding. At midpoints between recordable values, the step CDF and linear interpolation differ by the mass at one recordable value (largest for HbA1c, whose 0.1% steps carry several percent of a domain). That difference is a property of the measurement resolution, not of the grid, and it is why rounding to the recorded resolution is the normative step.

6. Files and contract

docs/contracts/shape.schema.json (JSON Schema 2020-12) defines shape_<metric>.json. Versions 1.1 and 1.2 are backward compatible: every 1.0 and 1.1 document validates. Version 1.2 adds lookup_rule.version, less_certain_width, answer_rule and technical; max_ci_width is required only for rule v1. Version 1.1 is backward compatible: every 1.0 document validates. It adds scale, density_basis, coded_values, build_status: release_candidate and the CI message pieces. CDF arrays are aligned with cdf_grid.v and rounded to 6 decimals; the CSVs keep full precision. lookup_test_vectors.json lists expected lookup outputs that the website must reproduce.

Pipeline: analysis/shapes.py (NumPy, also writes the exact bin/grid spec) → analysis/shapes.R (survey) → analysis/shapes_export.py (cross-check, rules, CSV/JSON, schema validation, checks). Every script takes --interim, --metrics, and --work / --out.

7. The rc5 measures (release rc5, expanded_* files)

Same estimators, engines, reliability rules and lookup rule v2 as sections 1-6. What is new is set out below and was fixed before the rc5 shapes were computed, except where marked.

  1. Scope. Every rc5 measure that the release publishes as a distribution (expanded_metrics.csv, kind distribution, status published): 133 measures. Each is shown only for the release's own cells (24 groups; 3 measures are published for women aged 20-49 only).
  2. Bins (config/shape_bins_rc5.yaml, generated by analysis/shapes_rc5_config.py). The rules of sections 2 and 2b are applied unchanged, with three additions:
  3. a coarser nested log series, LOG3 (1, 2, 5), for analytes spanning many decades. It is coarser than LOG6, so it is never chosen for an rc1-rc4 measure;
  4. on a log scale, adult P1 is raised to the recorded resolution when P1 is a detection-limit fill below it;
  5. when the resolution is too coarse for 15 round log values, the finest series is used, giving fewer bins (two measures, marked after first computation). Unit, scale, resolution and detection limit come from data/qa/rc5_shape_bin_inputs.csv.
  6. Grid (section 3b; changed after a first computation with sub-sampled grids, see 7.6).
  7. The grid range is the bin range extended to P5..P95 of every published group, so the lookup support never leaves the grid.
  8. Measures with at most 1500 recordable values in range use every recordable value, as in rc1-rc4.
  9. Larger ranges use every value recorded for an adult (grid: observed), plus the range ends, bin edges and the detection limit rounded up to the resolution. Nobody has a value strictly between two consecutive grid values, so the design-based F, its SE and its interval are constant there. The lookup therefore reads F at the largest grid value at or below the entered value (cdf_grid.between = "step"), which is exact.
  10. Disclosure: the jumps of an all-recordable-values CDF already show which values occur, so listing the recorded values publishes no more than rc1-rc4 did. No weights, counts or identifiers are added.
  11. Detection limit (docs/PRESPEC_RC5.md section 3). For the 44 measures with results below the limit (recorded as limit / sqrt(2)), the range below the limit is a coded range with reason BELOW_LLOD_FILL (section 4).
  12. Detection-limit bar (lead decision, 2026-11-09; schema 1.3.1). The limit rounded (halves up) to the recorded resolution is the first inner bin edge, and no bin edge lies below it. A detected result is recorded rounded, so it is never below the rounded limit, while every fill is below it. Bin 0, (-inf, round(L)), is therefore one labelled bar, "below the lab's detection limit" (bins[0].kind = below_detection_limit), whose share is the release share below the limit, s. The export stops if the bar differs from the release R estimate of s in any cell, or from the published release share and its interval. The bar is suppressed wherever the release withholds s. For the three sample-varying limits, the bar is "below the range of the lab's detection limit" (below_detection_limit_range, below the largest limit) and also holds detected results. Rounding up instead would have left the detected results of 25OHD2 and epi-25OHD3, recorded at round(L) < L, inside the bar; the export check caught this.
  13. CDF points below the limit are suppressed and quantile interval bounds below the limit are withheld.
  14. The release percentile rule is applied to all 19 shape quantiles: Pp is published only if s < p - 0.05, where s is the weighted share of the cell below the limit. P5 is therefore published only when s = 0. s is recomputed and checked against the release's R share estimates.
  15. The lookup returns below_detection_limit for any entered value that rounds below the limit, before any other rule. The message is "This reading is below the lab's detection limit, so the survey cannot place it among {group}." For the three RBC folate forms whose limit varies by sample, the largest limit is used (detection_limit.varying) and the message says the reading is in the range where the limit falls. Detected values below the largest limit are then not placed either, and quantile estimates are not blanked by the range (the release publishes them).
  16. Quantile intervals at the domain minimum or maximum (marked: met first in rc5). When a quantile equals the smallest or largest value of the group (p_hat_at_q = 0 or 1, zero variance), the Woodruff interval is undefined. survey::svyquantile returns it inconsistently (NA in one cell, the quantile itself in another), and the release never publishes it. Its SE and limits are nulled in both engines before the cross-check (--null-degenerate-intervals); the estimate is still compared. A zero estimate has infinite relative SE (release rule rse).
  17. Grid choice and its check (marked). A first computation used sub-sampled grids: every n-th recordable value, or 200 points per decade on a log scale. Linear interpolation between those points differed from the exact F by up to 0.037 at recorded values, about half a CI half-width. That is not negligible, so the observed-value grid of 7.3 replaced it. The exactness check now gives at most 5e-7 at every recorded value inside the support (the JSON rounding).
  18. Cross-check against the published percentiles (analysis/shapes_rc5_crosscheck.py). For every published release percentile q = Pp of every measure:
  19. the shape quantile equals the release value;
  20. the engine CDF brackets it: F(a) <= p <= F(b), with a the last grid value below q and b the first grid value at or above q where F rises;
  21. the published 6-decimal CDF brackets it, to within 5e-7. The crowd export repeats the bracket check for every dot.
  22. Crowd. As in rc3-shapes. A measure with no group with lookup support gets no crowd file (not_built); its dots would all be empty.

  23. CDF file. The CDF CSV of the rc5 measures is shipped compressed as expanded_shapes_cdf.csv.gz. Compression is deterministic (gzip with mtime 0, level 6), so a rebuild gives identical bytes. The manifest records the SHA-256 of both the compressed file and the uncompressed CSV (cdf_csv).

Counts and maxima: data/aggregates/nhanes-2021-2023-v1.0.0-rc5-shapes/README.md and expanded_build_summary.json (both written by analysis/shapes_rc5_readme.py). Tests: tests/science/test_shapes_rc5.py.

The lookup runs entirely in the browser. The value is never sent to a server, stored, or written to the page address.

Analysts' notes recorded with each measurement

These notes are kept with the release (metrics.csv, column caveats). The measurement pages show the reader-facing notes instead.

Total cholesterol
  • Within-cycle instrument change Cobas 6000 -> 8000; NCHS: no correction needed.
  • Lipid-lowering medication use is not adjusted; distributions describe measured values.
HDL cholesterol
  • Field is LBDHDD (codebook detection-limit table mislabels it LBXHDD).
  • Within-cycle instrument change; NCHS: no correction needed.
HbA1c (glycohemoglobin)
  • Code 0 = 'No Lab Result' must be set to missing (count 0 in this release; guard anyway).
  • Within-cycle instrument change Tosoh G8 -> Bio-Rad D-100; NCHS: no correction needed.
  • Not a diagnostic threshold display; diabetes treatment not adjusted.
Body mass index
  • Adult BMI interpretation differs from pediatric (BMDBMIC is 2-19 only).
  • BMXBMI is computed by NCHS and rounded to 0.1.
  • Body composition context matters; BMI is not a direct adiposity measure.
Waist circumference
  • BMIWAIST=1 'Could not obtain' (347 all ages) - check missingness by age band, likely higher in 80+.
Systolic blood pressure
  • Oscillometric only (Omron HEM-907XL); not comparable to pre-2017 auscultatory series without adjustment.
  • Antihypertensive treatment not adjusted.
Diastolic blood pressure
  • Codebook edit rule allows SBP without DBP, so DBP n may be smaller than SBP n.
Body weight
  • Weight with clothing or medical appliance (BMIWT 3/4) is retained, as for BMI.
Standing height
  • Cross-sectional height differences by age mix secular (birth-cohort) trends with age-related height loss.
  • Respondents who could not stand are missing; BMIHT 'not straight' retained.
Pulse rate
  • Resting pulse from the oscillometric BP device; medications (for example beta blockers) are not accounted for.
Hemoglobin
  • Sex differences are large; always read by sex.
  • Not adjusted for smoking or altitude (NCHS DB519 adjusts for smoking).
Serum creatinine
  • Reflects muscle mass as well as kidney function.
  • eGFR is deliberately not published: age is an input to the CKD-EPI equation, so its age gradient would be partly built in by construction.
  • Cobas 6000 -> 8000 change within cycle; codebook bridging: 'Adjustment Not Recommended' for LBXSCR.
Vitamin D (25-hydroxyvitamin D)
  • Season of examination and supplement use influence values; not adjusted.
High-sensitivity C-reactive protein
  • Strongly right-skewed: log-scale display recommended.
  • Values > 10 mg/L may reflect acute inflammation or infection; they are not excluded.
  • Values below the LLOD (0.15 mg/L) carry the NCHS fill value LLOD/sqrt(2); percentiles below the LLOD are suppressed (BELOW_LLOD_FILL).
  • Cobas 6000 -> 8000 change within cycle; not adjusted.
Triglycerides (fasting)
  • Fasting subsample is about half the exam sample: wider intervals and more suppression than full-sample metrics.
  • Right-skewed: log-scale display recommended.
  • Reference method LBXTLG used, not BIOPRO_L LBXSTR (codebook).
Fasting plasma glucose
  • Fasting subsample: wider intervals than full-sample metrics.
  • Includes people treated for diabetes; see treatment context.
Liver stiffness
  • Excludes people unable to lie down, with implanted electronic devices, or with right-side lesions (codebook eligibility) and incomplete exams.
  • Right-skewed: log-scale display recommended.
Liver fat signal (CAP)
  • Device range is 100-400 dB/m; values at the limits are bounded by the device.
  • Same eligibility limits as liver stiffness.
Usual sleep on workdays
  • Self-reported usual sleep period, not a physiological sleep measurement; may exclude naps.
  • Codes 2 (< 3 h) and 14 (>= 14 h) enter the mean at their coded values; percentiles at a code are suppressed.
  • Values are discrete (half hours), so percentiles often sit on a reported value.

Decisions

The project owner delegated the five Gate 1 questions to the analyst with the instruction to choose the most scientifically defensible option. Each decision below gives the option chosen, the reason, and the evidence produced in this repository. Reversing any of them is a versioned change (new method_version).

D1. Exclusion of pregnant women from every metric

D2. Percentile definition, tie-exact Hyndman–Fan type 4

D3. Reliability thresholds, version 1.0.0

D4. Item non-response and analyser changes, no adjustment and a published sensitivity analysis

D5. Licences

D6. Treatment context beside the medication-sensitive metrics

Still required before public launch

An independent methods review (brief Gate 3). These decisions do not substitute for it.