The NHANES data-collection protocols were approved by the National Center for Health Statistics (NCHS) Research Ethics Review Board (ERB). As the NHANES datasets are publicly available, researchers do not need additional approval from their own institutional review boards (IRBs).
Study population and eligibility criteria
The NHANES employs a multistage, stratified probability sampling design and collects comprehensive health and nutritional information through household interviews, standardized physical examinations, and laboratory assessments at Mobile Examination Centers (MEC). Publicly available data from the 1999 to 2004 survey-cycles was analyzed. As the data were fully anonymized and publicly accessible, this retrospective study did not require additional ethical approval. The study consisted of two components: (1) a cross-sectional analysis examining the association between the RAR and migraine occurrence, and (2) a prospective cohort analysis evaluating the relationship between RAR levels and all-cause mortality among individuals with migraine to assess its prognostic value. Figure 1 illustrates the overall study design and participant selection workflow, as required by JoVE guidelines. Briefly, a total of 15,332 participants aged ≥ 20 years were initially considered. After applying exclusion criteria and accounting for missing data, 8,781 participants were included in the cross-sectional analysis. Missing data were handled using a complete-case analysis, where participants with missing values for key variables (RAR, migraine status, or covariates) were excluded to ensure reproducibility. For the cohort analysis, participants identified as having migraine (n = 1,762) were followed longitudinally to investigate the association between RAR and mortality risk.
Measurement and categorization of RAR
RDW in NHANES was measured as part of standard laboratory complete blood count procedures conducted by trained personnel. All laboratory values, including RDW and albumin, were obtained from a single baseline measurement for each participant. Serum albumin levels were determined using the bromocresol purple (BCP) method under standardized pH conditions. The RAR was calculated as RDW (%) divided by serum albumin (g·dL-1) and has been widely applied in previous studies as a composite marker of inflammation and nutritional status19. For the cross-sectional analysis, participants were categorized into quartiles (Q1–Q4) based on the distribution of RAR in the overall study population: Q1 (≤ 2.73), Q2 (> 2.73–2.93), Q3 (> 2.93–3.18), and Q4 (> 3.18). In the cohort analysis, which included only participants with migraine, the RAR distribution differed; quartiles were recalculated within this subgroup: Q1 (≤ 2.74), Q2 (> 2.74–2.95), Q3 (> 2.95–3.23), and Q4 (> 3.23).
Migraine assessment
Migraine (or severe headache) in NHANES was assessed via questionnaire: participants were asked, “During the past 3 months, did you have severe headaches or migraines?” Previous studies, including the Migraine Prevalence and Prevention study and multiple NHANES-based national surveys, have demonstrated good concordance between self-reported severe headache and clinically diagnosed migraine20,21,22. Therefore, questionnaire-based identification provides a reasonable and comparable approach to identifying individuals with potential migraine in population studies.
Mortality assessment
Follow-up began on the MEC examination date and continued until death or December 31, 2019. Mortality outcomes were classified according to ICD-10 codes to assess all-cause mortality.
Covariate assessment
Potential confounders were selected based on the previous literature and their clinical relevance23,24,25. Demographic variables included age, sex, race/ethnicity (Mexican American, non-Hispanic White, non-Hispanic Black, other), education (< high school, high school, > high school), marital status (married/living with a partner vs. not married), and family income-to-poverty ratio (PIR: < 1, 1–3, > 3). Lifestyle factors included smoking status (current, former, and never) and alcohol consumption (ever vs. never). Physical status was represented by BMI (< 25, 25–30, and > 30), and medical conditions included self-reported diabetes and hypertension.
Statistical analysis
All analyses accounted for the complex survey design of NHANES by incorporating MEC weights, primary sampling units (clusters), and strata, ensuring nationally representative and reproducible estimates. Continuous variables were expressed as weighted medians with interquartile ranges (IQR) and compared using the Kruskal–Wallis test, whereas categorical variables were presented as weighted percentages and compared using the Rao–Scott chi-square test. Weighted logistic regression models were used in the cross-sectional analysis to evaluate the associations between RAR and migraine, with results presented as odds ratios (ORs) and 95% confidence intervals (CIs). In the cohort analysis, Cox proportional hazards models were applied to assess the association between RAR quartiles and all-cause mortality, with results reported as hazard ratios (HRs) and 95% CIs. Three hierarchical models were constructed: Model 0 was unadjusted; Model 1 was adjusted for demographic factors; Model 2 was further adjusted for lifestyle and physical factors (smoking, alcohol, BMI); and Model 3 was additionally adjusted for medical conditions (hypertension and diabetes). Restricted cubic spline (RCS) regression, utilizing 3 knots placed at the 10th, 50th, and 90th percentiles of the RAR distribution, was applied to explore potential non-linear relationships between RAR and migraine or mortality. Kaplan–Meier survival curves were generated to compare survival across RAR quartiles, and time-dependent receiver operating characteristic (ROC) curves were used to assess the predictive performance of RAR for mortality outcomes. Subgroup analyses were performed using interaction terms, with a two-sided P < 0.05 considered statistically significant. All analyses were conducted using R software (version 4.2.2).