Rules fixed before the rc5 measures were computed

Historical document, kept as written; see What we tested for current wording.

Written 2026-11-09, before any rc5 analytic table, estimate or respondent-level value for a new measure was computed or viewed. At the time of writing, only the documentation had been read: codebooks (data/raw/coverage_inventory/codebooks/), the coverage inventory (config/coverage_inventory.csv, SHA-256 d2de355bbc5c764b46eb4ac2d2d6c340797edd0c6be659f632f53188b7078c72) and the NHANES weighting tutorial (data/raw/rc5_sources/nhanes_tutorial_weighting.htm, SHA-256 0fe0e609fea576baf72ff5645fcdb66d22f402ab9ab1d0e622ea192c701d34e9). The SHA-256 of this file is recorded in docs/CHANGELOG.md and in data/qa/rc5_prespec_freeze.json. Any later change is a deviation and is listed in that file and in the validation report.

1. Scope

Every row of config/coverage_inventory.csv with decision == INCLUDE and wave in {A, B}: 188 rows (Wave A 173, Wave B 15). They map to outputs as follows.

inventory rows output in rc5
continuous laboratory and examination variables (output_type distribution or detection-share) distribution (mean, P10–P90) under the detection-limit rule of §3; plus a share at or above the detection limit for every analyte with a detection-limit comment variable
hepatitis serology (7 variables) shares (positive / negative), §4
balance (BAXPF1 and BAXPF2, 10 variables) 5 shares, "passed condition k", §4; trial-2 variables are inputs
DERIVED:balance-condition-4 duplicate of "passed condition 4"; not published separately
DERIVED:non-hdl distribution (total cholesterol − HDL cholesterol); the inventory label "share" is corrected here
DERIVED:acr-category, DERIVED:cotinine-exposure DEFER: their cut-points (KDIGO albuminuria categories; cotinine exposure ranges) have not been verified against the source documents by the Guidelines track. The continuous albumin-to-creatinine ratio and serum cotinine are published as distributions

The inventory's detection-share label used the all-ages share below the limit and is a planning label only; the publication decision is made per cell by §3.

2. Rules carried over unchanged from rc1–rc4

Adults RIDAGEYR >= 20; pregnant women (RIDEXPRG == 1) excluded; component weight > 0; the design is built on everyone with a positive weight for that component and domains are formed with subset(); domain df = #PSU − #strata with domain observations; tie-exact HF4 percentiles with Woodruff CIs; Korn–Graubard proportions; suppression per config/quality_thresholds.yaml v1.0.0 (SHA-256 12aef25c…7318); for shares, the rc4 secondary suppression; 10-year bands plus the top-coded 80+ group; missing values never imputed; no trimming. Values must lie inside the codebook "Range of Values"; a value outside it stops the build. R (survey) is the reference engine; the NumPy engine must agree for every estimate, SE, CI bound, n and df to rtol 1e-8. Contrasts of means are not extended to rc5 measures. Single-year stress domains are not computed.

3. Detection limits (a)

4. Binary and serology measures (b)

Published only as shares, never as distributions. Indeterminate, refused, not done and missing are excluded from the denominator and counted.

variable positive negative excluded
LBXHA hepatitis A antibody 1 2 3 indeterminate
LBXHBC hepatitis B core antibody 1 2 3
LBDHBG hepatitis B surface antigen 1 2 3
LBDHD hepatitis D antibody 1 2 3
LBXHBS hepatitis B surface antibody 1 2 3
LBXHCR hepatitis C RNA 1 2, 3 (antibody screen negative) —
LBDHCI hepatitis C antibody, confirmed 1, 4 (RNA positive) 2, 3 (screen negative) —
LBDHEG hepatitis E IgG 1 2 3

Balance (modified Romberg test, BAX_L, ages 20–69). Codebook protocol: five conditions of increasing difficulty, up to two trials each, and testing ended when a participant failed a condition after two trials. "Passed condition k" = pass (code 1) on trial 1 or trial 2 of condition k. "Not passed" = did not pass both attempted trials of condition k, or did not pass an earlier condition (testing ended). Excluded and counted: ineligible for the test (BAXMSTAT == 4), excluded from condition 5 only (condition 5), refused, not done, or a missing result not explained by an earlier failure. Bands 20–29 to 60–69 only; no 20+ row. Eligibility exclusions (for example poor vision, weight over 315 lb, leg amputation) are stated as a caveat.

5. Several methods for one analyte (c)

All methods are published in the data. One is designated the display measure (display_measure = true in the metric catalogue):

6. Display scale (d)

display_scale = log where the codebook "Range of Values" (all ages) spans a factor of 100 or more (log_display_likely == likely in the inventory), otherwise linear. Shares have no display scale.

7. Weights (e, f)

Weights as in the inventory. The four cases that were proposed rather than read from the file:

file weight basis storage
COT_L WTPH2YR COT_L codebook: "an additional phlebotomy weight, WTPH2YR, has been included in this data release" not in COT_L: merged by SEQN
FOLFMS_L WTPH2YR FOLFMS_L codebook, same statement not in FOLFMS_L: merged by SEQN
BCHE_L WTPH2YR BCHE_L codebook: serum/plasma analyte; BIOPRO_L analytic note: "The phlebotomy weight should be used for analyses that use variables derived from blood analytes"; NHANES weighting tutorial: phlebotomy weights for laboratory components from the phlebotomy not in BCHE_L: merged by SEQN
ALB_CR_L WTMEC2YR urine is collected at the MEC examination, not at phlebotomy; the tutorial assigns MEC exam weights to MEC components and phlebotomy weights to blood analytes; no urine weight exists for this cycle from DEMO_L

WTPH2YR is a person-level weight: before merging, the build asserts that it is identical for every SEQN across all phlebotomy files that carry it. If any of these files turns out to carry its own weight variable, that variable is used and the difference is reported. Subsample weights (WTSAF2YR fasting, WTSPF2YR PFAS, WTSVOC2Y VOCs): the design is built on everyone with a positive subsample weight; the build asserts that the design df is 15 (all strata and PSUs represented) or stops and reports.

8. Eligibility-restricted measures

Only eligible cells are estimated and published. Ferritin, transferrin receptor and alpha-1-acid glycoprotein (females 12–49): women, bands 20–29, 30–39, 40–49; no "all" or 20+ row. Balance: §4. All other measures: all bands, 20+, all/female/male.

9. Treatment context

LDL cholesterol (three equations) and non-HDL cholesterol: current cholesterol-lowering medicine (lipid_med, as for total cholesterol). Insulin: current diabetes medicine (diabetes_med, as for fasting glucose). Same definitions and skip handling as rc2.

10. Benchmarks

Search, before viewing estimates, for published NCHS or CDC estimates for August 2021–August 2023 for the new measures (National Report on Human Exposure to Environmental Chemicals data tables for metals, cotinine, PFAS and VOCs; NCHS Data Briefs and Health E-Stats; Series 3 No. 50 Tables 14–20 for hip, arm and leg measures). Each benchmark is reproduced with the publication's own rules and reported as an exact match or an explained difference; nothing is tuned to match.

11. Release

nhanes-2021-2023-v1.0.0-rc5 contains every rc4 file byte for byte (tested against the rc4 manifest) plus new files for the Wave A and B measures (expanded_*), the detection-limit and serology/balance shares, the metric catalogue with theme, display scale, display measure and public caveats, and not_included.csv generated from config/coverage_inventory.csv. Public caveats are generated from codebook facts (eligibility, sample, detection limits, method notes) with each sentence traceable to its source.