title: “Health and Economic Impacts of Severe Weather Events in the U.S. (NOAA Storm Database, 1950-2011)” author: KAVYA dat— e: “2026-12-02” output: html_document: keep_md: true —
This analysis uses the NOAA Storm Database (1950 to November 2011) to find which weather event types cause the most harm across the United States. Population health harm is measured as the total number of fatalities plus injuries for each event type. Economic harm is measured as property damage plus crop damage in US dollars, after converting the damage exponent codes (K, M, B) into numeric multipliers. Event type labels were standardized (case, whitespace, and a few grouped categories) before summing. Tornadoes were the most harmful event type for population health, with the highest combined fatalities and injuries. Floods had the greatest economic consequences, with the highest combined property and crop damage. The tables and figures in the Results section show the top 10 event types for each measure.
The analysis starts from the original compressed file repdata_data_StormData.csv.bz2. If it is not in the working directory, it is downloaded first. read.csv can read bzip2 files directly, so no preprocessing is done outside this document.
url <- "https://d396qusza40orc.cloudfront.net/repdata%2Fdata%2FStormData.csv.bz2"
file <- "repdata_data_StormData.csv.bz2"
if (!file.exists(file)) download.file(url, destfile = file, mode = "wb")
storm <- read.csv(file, stringsAsFactors = FALSE)
dim(storm)
## [1] 902297 37
Only the event type, the health variables, and the damage variables are needed.
storm <- storm %>%
select(EVTYPE, FATALITIES, INJURIES,
PROPDMG, PROPDMGEXP, CROPDMG, CROPDMGEXP)
The EVTYPE variable has many inconsistent labels (mixed case, extra spaces, variants of the same event). I convert to upper case, trim whitespace, and group the most common variants. This is not exhaustive, but it merges the largest groups so they are not split across several rows.
storm$EVTYPE <- toupper(trimws(storm$EVTYPE))
storm$EVTYPE <- case_when(
grepl("^TSTM|THUNDERSTORM", storm$EVTYPE) ~ "THUNDERSTORM WIND",
grepl("^HURRICANE|^TYPHOON", storm$EVTYPE) ~ "HURRICANE/TYPHOON",
grepl("^TORNADO", storm$EVTYPE) ~ "TORNADO",
grepl("FLASH FLOOD", storm$EVTYPE) ~ "FLASH FLOOD",
grepl("^FLOOD|RIVER FLOOD|URBAN", storm$EVTYPE) ~ "FLOOD",
grepl("EXCESSIVE HEAT|EXTREME HEAT", storm$EVTYPE) ~ "EXCESSIVE HEAT",
grepl("^HEAT", storm$EVTYPE) ~ "HEAT",
grepl("WINTER STORM", storm$EVTYPE) ~ "WINTER STORM",
grepl("^HAIL", storm$EVTYPE) ~ "HAIL",
grepl("^WILD.*FIRE", storm$EVTYPE) ~ "WILDFIRE",
grepl("^RIP CURRENT", storm$EVTYPE) ~ "RIP CURRENT",
TRUE ~ storm$EVTYPE
)
Damage is stored as a number (PROPDMG, CROPDMG) plus an exponent code (PROPDMGEXP, CROPDMGEXP). Per the documentation, K = thousands, M = millions, B = billions. H = hundreds, and digits 0-8 are treated as powers of ten. Unknown or blank codes (such as ?, -, +) are treated as a multiplier of 1 because their meaning is undocumented.
exp_to_mult <- function(x) {
x <- toupper(x)
case_when(
x == "H" ~ 1e2,
x == "K" ~ 1e3,
x == "M" ~ 1e6,
x == "B" ~ 1e9,
x %in% as.character(0:8) ~ 10^suppressWarnings(as.numeric(x)),
TRUE ~ 1
)
}
storm <- storm %>%
mutate(PROP_USD = PROPDMG * exp_to_mult(PROPDMGEXP),
CROP_USD = CROPDMG * exp_to_mult(CROPDMGEXP),
TOTAL_USD = PROP_USD + CROP_USD,
HARM = FATALITIES + INJURIES)
health <- storm %>%
group_by(EVTYPE) %>%
summarise(Fatalities = sum(FATALITIES),
Injuries = sum(INJURIES),
Total = sum(HARM)) %>%
arrange(desc(Total)) %>%
slice_head(n = 10)
## `summarise()` ungrouping output (override with `.groups` argument)
econ <- storm %>%
group_by(EVTYPE) %>%
summarise(Property = sum(PROP_USD) / 1e9,
Crop = sum(CROP_USD) / 1e9,
Total = sum(TOTAL_USD) / 1e9) %>%
arrange(desc(Total)) %>%
slice_head(n = 10)
## `summarise()` ungrouping output (override with `.groups` argument)
knitr::kable(health, digits = 0,
caption = "Top 10 event types by total fatalities + injuries")
| EVTYPE | Fatalities | Injuries | Total |
|---|---|---|---|
| TORNADO | 5658 | 91364 | 97022 |
| THUNDERSTORM WIND | 720 | 9535 | 10255 |
| EXCESSIVE HEAT | 2018 | 6680 | 8698 |
| FLOOD | 511 | 6873 | 7384 |
| LIGHTNING | 816 | 5230 | 6046 |
| HEAT | 1118 | 2494 | 3612 |
| FLASH FLOOD | 1035 | 1802 | 2837 |
| ICE STORM | 89 | 1975 | 2064 |
| WILDFIRE | 90 | 1606 | 1696 |
| WINTER STORM | 217 | 1353 | 1570 |
health_long <- health %>%
select(EVTYPE, Fatalities, Injuries) %>%
tidyr::pivot_longer(-EVTYPE, names_to = "Type", values_to = "Count")
ggplot(health_long,
aes(x = reorder(EVTYPE, Count, sum), y = Count, fill = Type)) +
geom_col() +
coord_flip() +
labs(x = "Event type", y = "People affected",
title = "Population health impact by event type")
Figure 1: Top 10 event types by total fatalities and injuries (1950-2011), with fatalities and injuries shown separately in the stacked bars.
knitr::kable(econ, digits = 2,
caption = "Top 10 event types by total property + crop damage (billions of USD)")
| EVTYPE | Property | Crop | Total |
|---|---|---|---|
| FLOOD | 150.10 | 10.85 | 160.95 |
| HURRICANE/TYPHOON | 85.36 | 5.52 | 90.87 |
| TORNADO | 58.55 | 0.42 | 58.97 |
| STORM SURGE | 43.32 | 0.00 | 43.32 |
| FLASH FLOOD | 17.59 | 1.53 | 19.12 |
| HAIL | 15.98 | 3.03 | 19.00 |
| DROUGHT | 1.05 | 13.97 | 15.02 |
| THUNDERSTORM WIND | 11.18 | 1.27 | 12.45 |
| ICE STORM | 3.94 | 5.02 | 8.97 |
| WILDFIRE | 8.49 | 0.40 | 8.89 |
econ_long <- econ %>%
select(EVTYPE, Property, Crop) %>%
tidyr::pivot_longer(-EVTYPE, names_to = "Type", values_to = "Billions")
ggplot(econ_long,
aes(x = reorder(EVTYPE, Billions, sum), y = Billions, fill = Type)) +
geom_col() +
coord_flip() +
labs(x = "Event type", y = "Damage (billions of USD)",
title = "Economic impact by event type")
Figure 2: Top 10 event types by total property and crop damage in billions of US dollars (1950-2011), with property and crop damage shown separately in the stacked bars.
Early years of the database have fewer recorded events, and event type labels are inconsistent, so some categories may still be split. Damage values are not adjusted for inflation.