NHANES variable guide
How to verify NHANES variables
Turn a variable list into a traceable data-dictionary draft Requested outputs / delivery goal: A source-linked data-dictionary draft, a cross-cycle differences table and a field-gap list.
Checking NHANES variables requires more than names in search results. Bind every core variable to its survey cycle, component, official documentation, eligible population, questionnaire or measurement method, units, coding, missing-value rules, and the components that determine its survey weight.
The goal is not to prove that a column exists, but to establish that it can enter the study under the prespecified definition. If the cycle, method, eligible population, or meaning of missing values remains unclear, the variable is not yet usable.
A concrete task with RigorMed
Turn a variable list into a traceable data-dictionary draft
These are suggested task inputs and outputs to request, not a new execution, a customer outcome or a guarantee of completion.
Materials to provide: Research definitions, cycles, candidate fields and official Codebooks, questionnaires and measurement documentation.
Requested outputs / delivery goal: A source-linked data-dictionary draft, a cross-cycle differences table and a field-gap list.
An example request
For each variable, record its official name, component, definition, eligible population, units, special codes, missingness meanings and source location in a data-dictionary draft. Leave unavailable definitions blank and explain the gap.
What still needs review
Identical names do not establish comparability. Do not infer units, codes, temporal relationships or weights from column names.
What should a usable variable record contain?
Build an item-by-item mapping for the main exposure, primary outcome, and key covariates rather than retaining only a list of variable names.
| Field to check | Information to record | Why it matters |
|---|---|---|
| Variable identification | Official name, label, component, and documentation link | Avoid incorrect matches caused by synonyms, similar labels, or different components |
| Survey scope | Cycle, eligible ages, population conditions, and questionnaire skip patterns | Determine the actual denominator and which missing values are structural |
| Measurement definition | Exact question, examination or laboratory method, units, detection limit, and equipment | Determine interpretability and comparability across cycles |
| Value rules | Codes, special values, refusals, 'don't know' responses, values below detection limits, and permitted derivations | Treating special codes as numerical observations directly changes the results |
| Merging and design | Participant identifier, components, applicable weights, strata, and PSU variables | Determine file merging, population estimation, and variance calculation |
| Version evidence | Access date, file version, documentation version, and local mapping status | Support review of variable evidence and identification of changes after source updates |
Labels help discover candidates; official data documentation, codebooks, frequencies, and methods are the main evidence for meaning. If fields look similar, return to the questionnaire, examination, or laboratory component to determine what each measures.
Seven steps for checking NHANES variables
Locate candidate variables through official search tools
Search by disease, measure, questionnaire concept, and possible English terms. Record the cycles and components in which candidates appear. Search results locate variables; they do not establish their final definitions.
Open the documentation for the relevant cycle
Confirm whether the variable comes from demographics, questionnaires, examinations, dietary data, or laboratory files. Record the file, cycle, and participant identifier. Do not infer its current meaning from same-named documentation for another cycle.
Check eligibility and skip patterns
Check applicable ages, sex or interview conditions, and answers that skip later questions. Not asked by design, refusal, 'don't know', and other missing observations must not be treated as a single state.
Check methods, units, and special values
For laboratory and examination variables, verify specimen type, instruments, methods, units, detection limits, and special codes. For questionnaires, retain the exact question, response options, and respondent. Consult component methods and analytical notes where needed.
Compare each cycle's measurement comparability
Create a cycle comparison table covering names, definitions, questionnaire wording, equipment, laboratory methods, units, codes, and eligible populations. Apply official bridging studies or calibration methods only under their stated conditions. Do not assume equivalence without evidence.
Determine merge keys and survey weights
Participant-level components within a cycle are generally merged by SEQN, but record granularity and duplicates still require checking. Select weights based on the components actually used and the analytical population, retaining strata and PSU variables as well.
Freeze the dictionary and derivation rules
Before formal statistics, fix source fields, target names, types, units, code mappings, missing-value rules, derivation formulas, cycle handling, and source links. List meanings that cannot be established from official evidence as gaps rather than filling them from experience.
Identical names do not justify direct merging
Across cycles, unchanged names may conceal changes in questionnaire wording, equipment, laboratory methods, detection limits, units, or target populations. Conversely, a stable concept may have a different variable name and require mapping using official documentation.
Judge comparability by measurement definitions and official methodological evidence, not matching strings. If comparability cannot be confirmed, restrict cycles, report them separately, or retain the issue as an analytical limitation.
Six common variable errors
- Treating a label as a complete definition without opening the cycle-specific codebook;
- Ignoring eligible ages and skip patterns and including people who were not asked in the denominator;
- Treating refusals, 'don't know', values below detection limits, or other special codes as ordinary numbers;
- Comparing column names across cycles without comparing methods, units, and codes;
- Using multiple components while retaining a weight inappropriate for the most restricted analytical subsample;
- Recoding in code first and documenting the dictionary and source evidence afterwards.
Checklist before a variable enters analysis
For every main variable, confirm at least the following:
- Do the official name, label, component file, and cycle agree?
- Are the target population, age range, and questionnaire eligibility clear?
- Does the exact question or measurement method support the planned definition?
- Are units, detection limits, equipment, and laboratory methods recorded?
- Is there an official explanation for every code and special missing value?
- Is comparability supported item by item rather than inferred from matching names?
- Have merge keys, record granularity, and duplicates been checked?
- Do weights, strata, and PSU variables match the components?
- Do derived variables have prespecified formulas, source fields, and handling boundaries?
- Are access dates and official documentation links retained in the dictionary?
If the main exposure or outcome cannot pass these checks, do not immediately substitute a similar variable. Revisit the research question and choose suitable cycles, variables, or sources.
Frequently asked questions
Where can I look up NHANES variables?
Locate variables through CDC/NCHS NHANES data, search, and component documentation. Open the relevant cycle's documentation and codebook to check descriptions, target populations, codes, and frequencies, rather than citing only third-party variable lists.
Can a variable with the same name in several cycles be merged directly?
Not on the basis of names alone. Compare questionnaire or measurement definitions, units, equipment, laboratory methods, codes, eligible populations, and official bridging guidance. After establishing comparability, handle cycles and weights according to the analytical guidelines.
Can all NHANES files be merged using SEQN?
SEQN is the respondent sequence number commonly used for participant-level files, but files can have different granularity or eligible populations. Check one-to-one and one-to-many relationships, duplicates, and component instructions before merging. Do not concatenate all files horizontally without conditions.
Which NHANES weight should I choose?
Weights depend on the components, target population, and pooled cycles. Usually select an applicable weight covering the most restricted core component and include strata and PSU variables. Confirm the specific choice using the relevant cycle's official analytical guidelines.
Verified sources
The official sources below were checked on 2026-09-07 / RigorMed: 2026-10-13. Access conditions and update dates are rechecked before publication.
- CDC/NCHS: NHANES datasets and related documentation
- CDC/NCHS: NHANES variable search
- CDC/NCHS: NHANES data file search
- CDC/NCHS: NHANES survey methods and analytical guidelines
- CDC/NCHS: guidelines for high-quality NHANES analyses
- CDC/NCHS:NHANES Tutorials
- CDC/NCHS: example demographics documentation for 2021–2023
Start with a specific task
Turn a variable list into a traceable data-dictionary draft
Bring legally usable materials and this page's example request to the workspace. Check the pre-execution material and credit notices before confirming, then review the resulting outputs.
