Cause of death, by injury (% of total)

Source: worldbank.org, 01.09.2025

Year: 2019

Flag Country Value Value change, % Rank
Afghanistan Afghanistan 17.3 +5.48% 9
Angola Angola 9.09 +7.1% 82
Albania Albania 3.04 -26.4% 180
United Arab Emirates United Arab Emirates 15.8 -25.9% 11
Argentina Argentina 5.71 -8.1% 137
Armenia Armenia 4.68 +5.89% 158
Antigua & Barbuda Antigua & Barbuda 5.37 +3.15% 146
Australia Australia 5.94 +1.5% 130
Austria Austria 5.45 +1.26% 143
Azerbaijan Azerbaijan 3.76 -13.9% 174
Burundi Burundi 12.1 +1.14% 25
Belgium Belgium 6.12 -1.28% 125
Benin Benin 9.19 +2.19% 80
Burkina Faso Burkina Faso 11.1 +12.1% 37
Bangladesh Bangladesh 7.13 -4.77% 112
Bulgaria Bulgaria 2.47 -8.63% 182
Bahrain Bahrain 8.89 -10.7% 87
Bahamas Bahamas 13.9 +11.3% 17
Bosnia & Herzegovina Bosnia & Herzegovina 3.77 -10.3% 173
Belarus Belarus 5.71 -10.8% 136
Belize Belize 18.8 -0.0619% 5
Bolivia Bolivia 8.7 -1.99% 92
Brazil Brazil 11.6 -7.23% 30
Barbados Barbados 4.31 -11% 163
Brunei Brunei 4.99 -14.2% 151
Bhutan Bhutan 9.05 -0.463% 83
Botswana Botswana 9.39 -1.57% 72
Central African Republic Central African Republic 9.02 -0.495% 84
Canada Canada 5.42 -6.21% 145
Switzerland Switzerland 5.7 +0.0258% 138
Chile Chile 7.76 -0.541% 101
China China 6.82 -9.42% 117
Côte d’Ivoire Côte d’Ivoire 10 +9.7% 57
Cameroon Cameroon 10.5 +8.6% 50
Congo - Kinshasa Congo - Kinshasa 9.69 +10.4% 63
Congo - Brazzaville Congo - Brazzaville 9.46 +11% 69
Colombia Colombia 14 -13.6% 16
Comoros Comoros 11.2 +4.4% 36
Cape Verde Cape Verde 14.1 -12.8% 15
Costa Rica Costa Rica 10.9 -6.19% 40
Cuba Cuba 7.48 -5.32% 106
Cyprus Cyprus 5.35 +11% 147
Czechia Czechia 4.78 -4.2% 155
Germany Germany 4.64 +17.6% 160
Djibouti Djibouti 10.8 +16.6% 42
Denmark Denmark 3.52 +0.716% 178
Dominican Republic Dominican Republic 15.5 +31% 12
Algeria Algeria 7.66 -7.3% 104
Ecuador Ecuador 11.5 -10.2% 31
Egypt Egypt 4.76 -4.52% 156
Eritrea Eritrea 11.9 +5.92% 27
Spain Spain 3.62 +6.02% 177
Estonia Estonia 4.22 -3.75% 167
Ethiopia Ethiopia 12.1 +12.2% 24
Finland Finland 5.64 +3.19% 139
Fiji Fiji 5.94 -1.94% 131
France France 6.36 -3.63% 123
Micronesia (Federated States of) Micronesia (Federated States of) 7.81 -9.13% 99
Gabon Gabon 8.72 +2.01% 90
United Kingdom United Kingdom 3.69 +7.06% 175
Georgia Georgia 3.9 -13.4% 171
Ghana Ghana 9.38 +4.47% 73
Guinea Guinea 8.77 +3.17% 89
Gambia Gambia 10.7 +5.02% 44
Guinea-Bissau Guinea-Bissau 9.21 +11.1% 79
Equatorial Guinea Equatorial Guinea 7.71 +5.91% 102
Greece Greece 3.91 +18.4% 170
Grenada Grenada 5.86 +3.14% 133
Guatemala Guatemala 16.1 +5.59% 10
Guyana Guyana 12.9 -7.18% 21
Honduras Honduras 17.9 -4.67% 7
Croatia Croatia 5.07 -2.58% 148
Haiti Haiti 10.6 +2.61% 45
Hungary Hungary 4.14 -8.95% 168
Indonesia Indonesia 4.75 -5.88% 157
India India 9.9 +2.1% 60
Ireland Ireland 3.91 -0.0756% 169
Iran Iran 10.6 -8.71% 46
Iraq Iraq 17.8 -38.8% 8
Iceland Iceland 5.56 -4.53% 142
Israel Israel 4.24 +1.61% 166
Italy Italy 3.86 +3.43% 172
Jamaica Jamaica 11.7 +2.72% 29
Jordan Jordan 10.4 -20.5% 52
Japan Japan 4.91 -6.89% 153
Kazakhstan Kazakhstan 8.2 -17.4% 95
Kenya Kenya 10.9 +9.78% 41
Kyrgyzstan Kyrgyzstan 7.97 -7.68% 97
Cambodia Cambodia 9.24 +1.68% 77
Kiribati Kiribati 5.57 -8.13% 141
South Korea South Korea 9.26 -10.3% 75
Kuwait Kuwait 13.5 -26.5% 18
Laos Laos 9.02 +3.21% 85
Lebanon Lebanon 5.9 -14% 132
Liberia Liberia 9.91 +19.7% 59
Libya Libya 14.6 -40% 13
St. Lucia St. Lucia 9.96 -0.182% 58
Sri Lanka Sri Lanka 8.01 -1.18% 96
Lesotho Lesotho 12.7 -1.79% 23
Lithuania Lithuania 5.43 -21.4% 144
Luxembourg Luxembourg 6.05 -8.95% 126
Latvia Latvia 4.97 -12.2% 152
Morocco Morocco 6.9 -12% 115
Moldova Moldova 6.05 -6.64% 127
Madagascar Madagascar 9.52 -4.3% 67
Maldives Maldives 6.66 -2.13% 120
Mexico Mexico 10.5 +3.41% 48
North Macedonia North Macedonia 2.58 -8.89% 181
Mali Mali 9.42 +11% 70
Malta Malta 3.25 +1.91% 179
Myanmar (Burma) Myanmar (Burma) 7.26 -3.77% 111
Montenegro Montenegro 4.48 -3.16% 161
Mongolia Mongolia 11 -8.32% 39
Mozambique Mozambique 9.4 +11.2% 71
Mauritania Mauritania 10.2 +4.98% 55
Mauritius Mauritius 4.35 -14.5% 162
Malawi Malawi 10.2 +7.63% 56
Malaysia Malaysia 8.42 -8.5% 94
Namibia Namibia 11.8 +6.42% 28
Niger Niger 10.5 +7.87% 49
Nigeria Nigeria 7.66 -2.43% 103
Nicaragua Nicaragua 8.91 -0.0672% 86
Netherlands Netherlands 5.76 +17.3% 134
Norway Norway 5.6 +3.84% 140
Nepal Nepal 8.72 -30.9% 91
New Zealand New Zealand 6.04 +4.97% 128
Oman Oman 10.4 -10.5% 51
Pakistan Pakistan 7 -4.7% 113
Panama Panama 8.77 -6.79% 88
Peru Peru 9.88 -5.3% 61
Philippines Philippines 5.97 -15.4% 129
Papua New Guinea Papua New Guinea 7.37 -1.44% 107
Poland Poland 4.24 -11.4% 165
North Korea North Korea 6.81 -8.76% 118
Portugal Portugal 4.79 +7.64% 154
Paraguay Paraguay 11.1 -7.91% 38
Qatar Qatar 18.2 -18.7% 6
Romania Romania 3.64 -0.495% 176
Russia Russia 6.79 -17.6% 119
Rwanda Rwanda 11.4 +0.566% 32
Saudi Arabia Saudi Arabia 19.5 -3.18% 2
Sudan Sudan 10.5 -8.05% 47
Senegal Senegal 11.3 +2.38% 34
Singapore Singapore 4.27 +4.95% 164
Solomon Islands Solomon Islands 9.77 -4.92% 62
Sierra Leone Sierra Leone 9.25 +23.2% 76
El Salvador El Salvador 19.1 -3.07% 4
Somalia Somalia 9.1 +8.66% 81
Serbia Serbia 2.37 -23.6% 183
South Sudan South Sudan 10.8 -8.46% 43
São Tomé & Príncipe São Tomé & Príncipe 11.4 +3.55% 33
Suriname Suriname 9.58 -9.2% 64
Slovakia Slovakia 6.29 +3.31% 124
Slovenia Slovenia 7.36 +7.84% 108
Sweden Sweden 5.04 -2.36% 149
Eswatini Eswatini 12.1 +5.39% 26
Seychelles Seychelles 7.53 -5.54% 105
Syria Syria 14.1 -73.9% 14
Chad Chad 9.57 +9.62% 65
Togo Togo 10.3 +4.79% 54
Thailand Thailand 9.51 -8.71% 68
Tajikistan Tajikistan 7.32 -2.53% 110
Turkmenistan Turkmenistan 5.74 -11.3% 135
Timor-Leste Timor-Leste 6.86 -2.65% 116
Tonga Tonga 9.52 +64.4% 66
Trinidad & Tobago Trinidad & Tobago 10.4 -1.63% 53
Tunisia Tunisia 6.91 -17.3% 114
Turkey Turkey 4.67 -18% 159
Tanzania Tanzania 11.3 +9.82% 35
Uganda Uganda 12.8 +12.8% 22
Ukraine Ukraine 5.01 -5.84% 150
Uruguay Uruguay 7.34 -0.834% 109
United States United States 6.55 +3.92% 122
Uzbekistan Uzbekistan 6.61 -0.622% 121
St. Vincent & Grenadines St. Vincent & Grenadines 7.79 +7.96% 100
Venezuela Venezuela 19.4 -6.22% 3
Vietnam Vietnam 9.33 +5.56% 74
Vanuatu Vanuatu 9.22 -4.79% 78
Samoa Samoa 7.88 -1.09% 98
Yemen Yemen 19.5 +9.15% 1
South Africa South Africa 13 +4.56% 20
Zambia Zambia 8.69 +2.38% 93
Zimbabwe Zimbabwe 13.1 +10.9% 19

The indicator 'Cause of death, by injury (% of total)' reflects the proportion of deaths resulting from injuries, which encompasses a wide range of fatal incidents such as road traffic accidents, falls, drowning, and interpersonal violence. This metric serves as a critical gauge of societal safety and health outcomes, significantly impacting public health planning, resource allocation, and the formation of safety policies. By analyzing injury-related deaths, we can discern patterns and risk factors that contribute to public health challenges and work towards mitigating them.

The importance of monitoring the percentage of deaths due to injury lies in its ability to reveal underlying issues within specific populations and regions. Higher percentages indicate a greater burden of injuries, often associated with factors like socio-economic development, effective governance, infrastructure quality, and healthcare access. Monitoring this indicator allows governments and health organizations to identify regions where interventions are required, promoting the development of targeted strategies to enhance safety and reduce mortality rates.

In tracking trends over time, it is evident that the global average for injury-related deaths has fluctuated. In 2000, the world value stood at 8.55% of total deaths by injury, rising to 8.86% in 2010. However, this figure saw a slight decline to 8.3% in 2015, leading to an even lower value of 7.96% in 2019. These fluctuations suggest a complex interplay of factors such as improved healthcare, public safety initiatives, and variations in conflict or violence incidence across different regions.

A closer look at nations showcasing the highest percentages of deaths due to injuries reveals concerning trends indicative of broader public health challenges. For example, in 2019, Yemen recorded a staggering 19.49%, followed closely by Saudi Arabia at 19.46%, and Venezuela at 19.38%. Such high injury mortality rates may be reflective of ongoing conflicts, high levels of violence, and insufficient healthcare systems. In these regions, trauma from war, civil disturbance, and crime contributes to high death tolls from injury. Similarly, El Salvador and Belize, both with injury-related death percentages over 18%, highlight the impact of violent crime, particularly gang-related violence, underscoring the urgent need for comprehensive societal reforms and action to ensure safety and improve healthcare systems.

Conversely, the bottom five regions, including Serbia with a low of 2.37% and Bulgaria at 2.47%, illustrate the effectiveness of strategic public health interventions and civil engagement. These nations often feature more robust health and safety regulations, public awareness campaigns, and investments in emergency services. Such lower percentages reflect a social environment more adept at preventing injuries and managing their consequences when they do occur. These examples emphasize the correlation between injury mortality rates and broader indicators of societal well-being, such as economic stability, education, and healthcare quality.

A variety of factors can influence the percentages of deaths due to injury in any given area. These include socio-economic status, the prevalence of violent crime, urbanization trends, road traffic regulations, and access to healthcare. Low-income areas may frequently witness higher injury mortality rates due to inadequate infrastructure, limited access to preventative education, and insufficient healthcare services. Additionally, cultural attitudes towards injury and violence play a critical role. Areas with a strong cultural acceptance of violence or inadequate public health responses may face higher injury-related deaths.

Addressing the causes of deaths by injury must involve multi-faceted strategies tailored to local contexts. Initiatives can range from enhancing law enforcement capacities and road safety regulations to implementing educational campaigns promoting safety behaviors. Communities can benefit from building resilience through improvements in social programs aimed at reducing violence and increasing economic opportunities. Collaborative partnerships among governments, NGOs, and healthcare providers are essential to creating sustainable solutions that not only focus on reactive measures but also emphasize preventative strategies.

Despite the potential for improvement, challenges persist in effectively reducing injury-related death rates. One significant flaw in current frameworks is the inconsistency in data collection and reporting methodologies, leading to discrepancies across regions. Some nations may underreport due to inadequate tracking or stigma associated with violence, thereby skewing perceptions of injury death rates. Moreover, immediate responses to violence may overshadow long-term strategies aimed at addressing the root causes of injury rates in various settings.

Ultimately, understanding the cause of death by injury as a percentage of total deaths is vital not only for creating responsive public health policies but for assessing overall societal health. As we evaluate shifts in trends over time and across geographic regions, it becomes apparent that collaborative, community-centric approaches combined with effective governance can lead to meaningful reductions in injury-related mortalities. By investing in data infrastructure, public education, and rehabilitation initiatives, we can protect communities and enhance resilience toward preventing injury-related deaths worldwide.

                    
# Install missing packages
import sys
import subprocess

def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])

# Required packages
for package in ['wbdata', 'country_converter']:
try:
__import__(package)
except ImportError:
install(package)

# Import libraries
import wbdata
import country_converter as coco
from datetime import datetime

# Define World Bank indicator code
dataset_code = 'SH.DTH.INJR.ZS'

# Download data from World Bank API
data = wbdata.get_dataframe({dataset_code: 'value'},
date=(datetime(1960, 1, 1), datetime.today()),
parse_dates=True,
keep_levels=True).reset_index()

# Extract year
data['year'] = data['date'].dt.year

# Convert country names to ISO codes using country_converter
cc = coco.CountryConverter()
data['iso2c'] = cc.convert(names=data['country'], to='ISO2', not_found=None)
data['iso3c'] = cc.convert(names=data['country'], to='ISO3', not_found=None)

# Filter out rows where ISO codes could not be matched — likely not real countries
data = data[data['iso2c'].notna() & data['iso3c'].notna()]

# Sort for calculation
data = data.sort_values(['iso3c', 'year'])

# Calculate YoY absolute and percent change
data['value_change'] = data.groupby('iso3c')['value'].diff()
data['value_change_percent'] = data.groupby('iso3c')['value'].pct_change() * 100

# Calculate ranks (higher GDP per capita = better rank)
data['rank'] = data.groupby('year')['value'].rank(ascending=False, method='dense')

# Calculate rank change from previous year
data['rank_change'] = data.groupby('iso3c')['rank'].diff()

# Select desired columns
final_df = data[['country', 'iso2c', 'iso3c', 'year', 'value',
'value_change', 'value_change_percent', 'rank', 'rank_change']].copy()

# Optional: Add labels as metadata (could be useful for export or UI)
column_labels = {
'country': 'Country name',
'iso2c': 'ISO 2-letter country code',
'iso3c': 'ISO 3-letter country code',
'year': 'Year',
'value': 'GDP per capita (current US$)',
'value_change': 'Year-over-Year change in value',
'value_change_percent': 'Year-over-Year percent change in value',
'rank': 'Country rank by GDP per capita (higher = richer)',
'rank_change': 'Change in rank from previous year'
}

# Display first few rows
print(final_df.head(10))

# Optional: Save to CSV
#final_df.to_csv("gdp_per_capita_cleaned.csv", index=False)
                    
                
                    
# Check and install required packages
required_packages <- c("WDI", "countrycode", "dplyr")

for (pkg in required_packages) {
  if (!requireNamespace(pkg, quietly = TRUE)) {
    install.packages(pkg)
  }
}

# Load the necessary libraries
library(WDI)
library(dplyr)
library(countrycode)

# Define the dataset code (World Bank indicator code)
dataset_code <- 'SH.DTH.INJR.ZS'

# Download data using WDI package
dat <- WDI(indicator = dataset_code)

# Filter only countries using 'is_country' from countrycode
# This uses iso2c to identify whether the entry is a recognized country
dat <- dat %>%
  filter(countrycode(iso2c, origin = 'iso2c', destination = 'country.name', warn = FALSE) %in%
           countrycode::codelist$country.name.en)

# Ensure dataset is ordered by country and year
dat <- dat %>%
  arrange(iso3c, year)

# Rename the dataset_code column to "value" for easier manipulation
dat <- dat %>%
  rename(value = !!dataset_code)

# Calculate year-over-year (YoY) change and percentage change
dat <- dat %>%
  group_by(iso3c) %>%
  mutate(
    value_change = value - lag(value),                              # Absolute change from previous year
    value_change_percent = 100 * (value - lag(value)) / lag(value) # Percent change from previous year
  ) %>%
  ungroup()

# Calculate rank by year (higher value => higher rank)
dat <- dat %>%
  group_by(year) %>%
  mutate(rank = dense_rank(desc(value))) %>% # Rank countries by descending value
  ungroup()

# Calculate rank change (positive = moved up, negative = moved down)
dat <- dat %>%
  group_by(iso3c) %>%
  mutate(rank_change = rank - lag(rank)) %>% # Change in rank compared to previous year
  ungroup()

# Select and reorder final columns
final_data <- dat %>%
  select(
    country,
    iso2c,
    iso3c,
    year,
    value,
    value_change,
    value_change_percent,
    rank,
    rank_change
  )

# Add labels (variable descriptions)
attr(final_data$country, "label") <- "Country name"
attr(final_data$iso2c, "label") <- "ISO 2-letter country code"
attr(final_data$iso3c, "label") <- "ISO 3-letter country code"
attr(final_data$year, "label") <- "Year"
attr(final_data$value, "label") <- "GDP per capita (current US$)"
attr(final_data$value_change, "label") <- "Year-over-Year change in value"
attr(final_data$value_change_percent, "label") <- "Year-over-Year percent change in value"
attr(final_data$rank, "label") <- "Country rank by GDP per capita (higher = richer)"
attr(final_data$rank_change, "label") <- "Change in rank from previous year"

# Print the first few rows of the final dataset
print(head(final_data, 10))