Skip to content

Death Rates

github-actions[bot] edited this page Oct 5, 2026 · 18 revisions

This module generates mortality rates by single year of age, sex, and race/ethnicity for each increment year. Post-launch year rates are optionally adjusted from launch year rates to match asserted mortality rates.

Inputs

Input Module Source Usage
1999-2020 CDC WONDER Mortality CDC WONDER ucd-icd10: 1999-2020: Underlying Cause of Death by Bridged-Race Categories Provides death counts for years 1999-2020
2018-2024 CDC WONDER Mortality CDC WONDER ucd-icd10-expanded: 2018-2024: Underlying Cause of Death by Single-Race Categories Provides death counts for years 2022-2024
Launch Year Population Launch Year Population Population used to supplement missing population within the CDC WONDER mortality database for San Diego County in years 2022 and beyond
UN DESA Life Table Survivors UN DESA Life Table Survivors Provides number of life table survivors which are then used to calculate mortality rates for ages 85-99
Forecasted Mortality Rates User-Input (Optional) Optional CSV file of asserted mortality rate forecast for each increment year post-launch

1999-2020 CDC WONDER Mortality

The mortality rates for 1999 to 2020 are provided by the Centers for Disease Control and Prevention (CDC) WONDER Mortality 1999-2020 database by single year of age (0-84), sex, and race/ethnicity. This database is used in tandem with subsequent CDC mortality databases to create a historical time series spanning 1999 onward. Because the Non-Hispanic, Hawaiian or Pacific Islander and Non-Hispanic, Two or More Races categories are not broken out prior to 2022, their rates for 1999-2020 are instead manufactured from all of the races.

2018-2024 CDC WONDER Mortality

The mortality rates for 2022 and onward are provided by the Centers for Disease Control and Prevention (CDC) WONDER Mortality 2018-2024 database by single year of age (0-84), sex, and race/ethnicity. This database is used in tandem with preceding CDC mortality databases to create a historical time series spanning 1999 onward. Population for San Diego County is unavailable starting 2022, and will be supplemented with the launch year population.

Launch Year Population

See Launch Year Population. Population will supplement missing San Diego County population from 2022 onward.

UN DESA

The mortality rates for ages 85-99 are provided by the United Nations Department of Economic and Social Affairs (UN DESA) Life Table Survivors dataset by single year of age and sex.

Forecasted Mortality Rates (Optional)

An optional user-defined CSV file containing forecasted mortality rates. If provided, the CSV should include one row per post-launch increment year, single year of age, sex, and race/ethnicity combination. See the README.md for more information regarding the file structure and how to update the configuration file.

Outputs

Mortality Rates

For ages under 85, mortality rates are calculated using CDC WONDER mortality datasets as deaths divided by population for each single year of age, sex, and race/ethnicity. The calculation starts with San Diego County data and, when a value is suppressed or zero, substitutes data from larger geographies (California, then the United States). When national data is also unavailable, the data is imputed. For Non-Hispanic, Hawaiian or Pacific Islander, the substitution hierarchy starts with state level data then national level data due to discontinuous rates when mixing county and state level data. Because 2021 data are missing, 2020 data are used instead. Due to a product change in the CDC WONDER Mortality database, population for years 2022 and beyond are missing for San Diego County, and will be substituted with the Launch Year Population. CDC WONDER Mortality data is limited up to 2024 and subsequent launch years will use 2024 data.

For ages 85 and older, the United Nations Department of Economic and Social Affairs (UN DESA) Life Table Survivors dataset is used instead. Because this dataset is stratified only by age and sex, a scaling factor is applied to estimate age-, sex-, and race/ethnicity-specific mortality rates. A scaling factor is then derived by comparing implied mortality rates for ages 85 and older from CDC WONDER and solving for the value that aligns the UN DESA implied rate with CDC WONDER. UN DESA data is limited up to 2023 and subsequent launch years will use 2023 data.

Post-launch year, asserted mortality rates are used if provided.

See the python/input_modules/death_rates.py file and sql/mortality folder for underlying code used by the module.

Clone this wiki locally