Research Atlas

Home / Medicine / Sleep and depression symptoms: how many records can be linked?

NHANES

Sleep and depression symptoms: how many records can be linked?

Abstract

How many adults in NHANES 2015–2016 have both a sleep measure and a complete PHQ-9 symptom score? Of 5,992 participants, 5,110 have both. Counting each combination of recorded and missing fields shows who a paired analysis could include.

Which measures are available for 5,992 adults
Both measures
5,110
Sleep only
849
PHQ-9 only
24
Both missing
9
Each participant appears in exactly one group. Bar length counts people in the archived file before applying survey weights.

Method

Start with all adults

The CDC demographics file (DEMO_I) defines the starting group. Select participants aged 18 or older, then join the sleep (SLQ_I) and depression screener (DPQ_I) modules from the same cycle by participant identifier SEQN. All 5,992 starting rows are retained, including those without a questionnaire. Checking SEQN prevents duplicate counting.

Distinguish zero from missing

SLD012 is the usual duration of the main sleep period on weekdays or workdays. The full PHQ-9 score sums nine symptom items covering the previous two weeks. A score of zero is a recorded value. We check the presence of both fields in each row, then verify that the four mutually exclusive groups add to the starting denominator.

Account for the survey design

Across the whole file, 257 adults have a zero examination weight (WTMEC2YR). All 5,110 complete pairs have a positive weight. A population analysis would also have to use the survey strata (SDMVSTRA) and primary sampling units (SDMVPSU). The PHQ-9 itself includes sleep item DPQ030, so the two measures partly overlap in content.

Table

Fields presentParticipantsShare of 5,992, %
Both measures511085.3
Sleep only84914.2
PHQ-9 only240.4
Both missing90.2

Conclusion

Both measures are recorded for 85.3% of adults in the file. Of the remaining 882, 849 have only sleep duration, 24 have only a full PHQ-9 score, and 9 have neither.

Scope

This audit measures questionnaire completeness. Unweighted percentages describe these records only. Estimating an association between sleep and symptoms would require a prespecified approach to missing data, survey design and overlapping items. The questionnaire measures symptoms and by itself does not establish a clinical diagnosis.

Materials

Download data and code · ZIP

References

CDC · NHANES demographics and designCDC · sleep variable SLD012CDC · symptom questionnaire DPQ_ICDC · NHANES weighting tutorial