CONUS County-Level Drug Overdose & Opioid Mortality — Dataset Documentation
County-level drug-overdose and opioid-related mortality for the contiguous
United States (48 states + DC). The USA Overdose Mortality explorer
(usa_overdose_mortality.html) maps three live CDC/NCHS source layers; a separate
synthetic long-format panel (conus_overdose_timeseries.parquet) remains available
for offline pipeline development and SQL prototyping.
| Property | Value |
|---|---|
| Geographic scope | Contiguous US — ~3,108 counties, 48 states + DC (excludes AK, HI, territories) |
| Explorer tabs | Model-based (2003–2021), Provisional (2020→), Opioid allocated (2020→) |
| Categories | drug_overdose_all, opioid |
| Denominator reference | conus_counties.csv (FIPS, name, 2018 population) |
| Atlas build script | scripts/build_overdose_data.py |
| Pipeline (synthetic + live) | overdose_mortality_pipeline.py |
Read this first — explorer vs. parquet panel
USA Overdose Mortality explorer (live CDC data)
The interactive atlas pulls observed CDC/NCHS data at build time:
| Tab | CDC source | Dataset ID | Window | Notes |
|---|---|---|---|---|
| Model-based rates | NCHS Drug Poisoning Mortality visualization | rpvx-m2md |
2003–2021 | Hierarchical Bayesian posterior median rates per 100k; includes 95% CI and urban–rural class |
| Provisional counts | VSRR provisional county counts | gb4e-yj24 |
2020→ | 12-month-ending counts; December month-ending used per year; 1–9 suppressed |
| Opioid (county-estimated) | VSRR state opioid + county provisional share | xkb8-kh2a + gb4e-yj24 |
2020→ | State opioid totals allocated to counties proportionally — not observed WONDER county counts |
Rebuild atlas assets (requires internet for --refresh-cdc):
python3 scripts/build_overdose_data.py # use cached CDC parquets
python3 scripts/build_overdose_data.py --refresh-cdc # re-download from CDC
python3 scripts/build_overdose_documentation.py # regenerate overdose_documentation.html
Synthetic parquet panel (offline development)
conus_overdose_timeseries.parquet is a tidy long-format panel (1999–2023) where
mortality values are synthetic (SYNTHETIC_DEMO), generated by
overdose_mortality_pipeline.py so analysis code can be developed against a
realistic schema. Use the live CDC pull in the explorer or
build_timeseries(use_synthetic=False) for authoritative figures.
| Property | Value |
|---|---|
| Years | 1999–2023 (25 years) |
| Grain | one row per county × year × category × source |
| Rows | 233,100 |
| Files | conus_overdose_timeseries.parquet (2.8 MB), .csv (41.8 MB) |
Parquet is recommended: it preserves nullable deaths and suppressed types that
CSV silently coerces.
Case definitions (ICD-10)
| Category | Definition |
|---|---|
drug_overdose_all |
Underlying cause X40–X44, X60–X64, X85, Y10–Y14 (drug poisoning) |
opioid |
The above with contributing cause T40.0–T40.4, T40.6 (opioid-involved) |
NCHS model-based and VSRR provisional sources follow these ICD-10 definitions per CDC technical notes.
Data sources
| Source | Provider / endpoint | Level & window | Used in explorer |
|---|---|---|---|
| NCHS county model-based | Drug Poisoning Mortality visualization · rpvx-m2md |
County, 2003–2021, model-based rate + population | Yes — model-based tab |
| NCHS county model-based (legacy) | pbkm-d27e |
County, 1999–2015, binned age-adjusted rate | Pipeline only (superseded by rpvx-m2md) |
| VSRR provisional county | gb4e-yj24 |
County, 2020→, 12-month-ending counts (1–9 suppressed) | Yes — provisional tab |
| VSRR state opioid | xkb8-kh2a |
State, opioid (T40.0–T40.4, T40.6) | Yes — opioid tab (state totals → county allocation) |
| CDC WONDER | Multiple Cause of Death | County, opioid-specific, <10 suppressed | Not automated (API restricts county queries) |
| Census / ACS | US Census | County population denominators | Denominators in conus_counties.csv |
The current model-based atlas layer uses posterior median model-based death rates
from rpvx-m2md (INLA hierarchical Bayesian models with spatial and temporal random
effects). An older pipeline connector (pbkm-d27e) used binned age-adjusted rate
bands; that file is retained for compatibility but is not what the explorer maps.
Atlas schema (per tab)
Each explorer tab exposes a compact column set in assets/overdose_*_data.js:
| Column | Type | Description |
|---|---|---|
fips |
string(5) | County FIPS, zero-padded |
state_abbr |
string | Two-letter state code |
county_name |
string | County and state abbreviation |
year |
int | Calendar year |
category |
string | drug_overdose_all or opioid |
deaths |
float | Death count (derived or observed; null when suppressed) |
population |
int | County population denominator |
crude_rate_per_100k |
float | deaths / population × 100,000 (or model-based rate) |
pct_of_population |
float | deaths / population × 100 |
suppressed |
bool | true when the count is withheld (provisional 1–9) |
lower95ci, upper95ci |
float | Model-based tab only — Bayesian credible interval bounds |
urbanrural |
string | Model-based tab only — NCHS 2013 urban–rural classification |
Synthetic parquet schema (full panel)
| Column | Type | Description |
|---|---|---|
fips |
string(5) | County FIPS, zero-padded (e.g., 36109 = Tompkins County, NY) |
county_name |
string | County and state abbreviation |
state |
string | Full state name |
state_abbr |
string | Two-letter state code |
year |
Int64 | 1999–2023 |
category |
string | drug_overdose_all or opioid |
source |
string | Provider tag; (SYNTHETIC_DEMO) marks modeled rows |
deaths |
float | Overdose deaths; NaN when suppressed |
population |
int | County population denominator |
crude_rate_per_100k |
float | deaths / population × 100,000 |
age_adjusted_rate_per_100k |
float | Age-standardized rate (model-based source only) |
pct_of_population |
float | deaths / population × 100 |
suppressed |
bool | true when the count is suppressed |
notes |
string | Provenance and caveat string |
Source layers
Explorer (live CDC)
| Tab | Content |
|---|---|
| Model-based | Observed NCHS county model-based rates (rpvx-m2md), 2003–2021 |
| Provisional | Observed VSRR 12-month-ending county counts (gb4e-yj24), 2020→ |
| Opioid | State VSRR opioid deaths allocated to counties by provisional share |
Synthetic parquet (demo panel)
| Category | Source tag | Content |
|---|---|---|
drug_overdose_all |
NCHS_County_ModelBased (SYNTHETIC_DEMO) |
Age-adjusted rate + derived count |
drug_overdose_all |
NCHS_Provisional_County (SYNTHETIC_DEMO) |
12-month-ending count (1–9 suppressed) |
opioid |
CDC_WONDER (SYNTHETIC_DEMO) |
Opioid-specific county count (<10 suppressed) |
Opioid county allocation (explorer)
County-level opioid-specific counts are not published on data.cdc.gov and CDC WONDER’s public API does not support automated county-level queries. The opioid tab therefore:
- Pulls state 12-month-ending opioid death totals from
xkb8-kh2a(indicator:Opioids (T40.0-T40.4,T40.6)), using December values per year. - Pulls county provisional all-drug overdose counts from
gb4e-yj24(unsuppressed cells only). - Allocates each state’s opioid total to counties in proportion to each county’s share of the state’s provisional all-drug overdose deaths:
county_opioid_est = state_opioid × (county_provisional_all / sum(county_provisional_all in state))
This preserves state opioid totals and yields plausible relative county patterns, but is an estimate — not an observed county opioid count.
Suppression semantics
Provisional tab (gb4e-yj24): NCHS suppresses counts of 1–9. Suppressed
county-years are flagged (suppressed = true) and excluded from the choropleth.
Roughly half of county-years may be suppressed; do not sum suppressed cells for totals.
Model-based tab (rpvx-m2md): Rates are model-based estimates with credible
intervals; no small-count suppression, but values may differ from WONDER observed counts.
Opioid tab: Only counties with unsuppressed provisional all-drug counts receive an allocated opioid estimate.
Synthetic generation (parquet only)
When use_synthetic=True, expected deaths for a county × year are drawn as a
Poisson variable around an intensity curve calibrated to the real US epidemic:
- Rising baseline across 1999–2023.
- Fentanyl-era acceleration from 2013 onward.
- Pandemic bump from 2020 onward.
- Per-county heterogeneity via a log-normal place effect.
- Rising opioid share of overdose deaths over time.
- Registry suppression (1–9) applied to the provisional-count layer.
- Reproducibility: fixed seed (
207).
The generator targets realistic shape, not truth.
Usage
Atlas / cached CDC parquets
import pandas as pd
model = pd.read_parquet("conus_overdose_model_based_cdc.parquet")
prov = pd.read_parquet("conus_overdose_provisional_cdc.parquet")
opi = pd.read_parquet("conus_overdose_opioid_cdc.parquet")
# Tompkins County, NY — model-based trajectory
tompkins = model.query("fips == '36109'").sort_values("year")
Synthetic long panel
df = pd.read_parquet("conus_overdose_timeseries.parquet")
wide = (df.query("category == 'drug_overdose_all'")
.pivot_table(index=["fips", "year"], columns="source",
values="deaths"))
Live CDC pull (pipeline)
from overdose_mortality_pipeline import PipelineConfig, build_timeseries
cfg = PipelineConfig(states=None, conus_only=True, year_min=1999, year_max=2023)
real = build_timeseries(cfg, use_synthetic=False) # needs internet
Caveats and limitations
- Source seam ~2019–2021. Model-based estimates end in 2021; provisional counts begin in 2020. Do not treat these as one continuous series without reconciliation.
- Opioid county tab is estimated, not WONDER-observed. Use for relative geography, not exact county opioid totals.
- Don’t sum suppressed provisional cells — they undercount.
- Model-based rates are estimates from Bayesian models; credible intervals are provided on the model-based tab.
- Population denominators in the explorer use
conus_counties.csv(2018 baseline) for provisional and opioid crude rates; model-based tab uses population from CDC. - CONUS only. Alaska, Hawaii, and territories are excluded by design.
- Synthetic parquet remains for offline development; the explorer uses live CDC data.
File manifest
| File | Description |
|---|---|
conus_overdose_model_based_cdc.parquet |
Cached CDC model-based county estimates (rpvx-m2md) |
conus_overdose_provisional_cdc.parquet |
Cached CDC provisional county counts (gb4e-yj24) |
conus_overdose_opioid_cdc.parquet |
Cached county opioid estimates (state allocation) |
conus_overdose_timeseries.parquet |
Synthetic long-format panel (offline dev) |
conus_overdose_timeseries.csv |
Same synthetic data as CSV |
conus_counties.csv |
County FIPS, names, 2018 population |
overdose_mortality_pipeline.py |
Pipeline: live CDC connectors + synthetic generator |
CONUS_Overdose_Timeseries_Data.md |
This document |
../../scripts/build_overdose_data.py |
Build atlas JS assets from CDC caches |
../../scripts/build_overdose_documentation.py |
Build overdose_documentation.html |
../../assets/overdose_model_based_data.js |
Atlas asset — model-based tab |
../../assets/overdose_provisional_data.js |
Atlas asset — provisional tab |
../../assets/overdose_opioid_wonder_data.js |
Atlas asset — opioid tab |
../../usa_overdose_mortality.html |
Interactive county/state explorer |
../../overdose_documentation.html |
Rendered documentation page |
References
- CDC / NCHS. Drug Poisoning Mortality in the United States, 2003–2021 (visualization gallery).
- CDC / NCHS. NCHS Drug Poisoning Mortality by County (
rpvx-m2md). - CDC / NCHS. VSRR Provisional County-Level Drug Overdose Death Counts (
gb4e-yj24). - CDC / NCHS. VSRR Provisional Drug Overdose Death Counts by drug class (
xkb8-kh2a). - CDC WONDER. Multiple Cause of Death.
- US Census Bureau. County population estimates.
Drug-overdose deaths are identified by ICD-10 underlying-cause codes X40–X44, X60–X64, X85, and Y10–Y14; opioid involvement by contributing codes T40.0–T40.4 and T40.6.