This study uses statistical methods to analyze the different causes of firefighter deaths. In this study, hypotheses are set based on prejudices about firefighter deaths and compared with actual results. The goal of this study is to identify ways to prevent firefighter deaths by comparing our hypothesis about the causes of firefighter deaths to real-world data. The study’s findings highlight the importance of firefighter safety and the need for continued research into firefighter health and safety.
Firefighter Fatalities in the United States is a data of firefighter fatalities. This data offers name, age, rank, date of death, and classification of fatalities. This data also provides examples of data about the situation at the time of death, such as emergency status, property type, activity, and duty. Among the variables, cause of death means the direct cause leading to death, and nature of death means the manner or form of death.
This study examines the relationship between firefighters’ statistical characteristics and their deaths. Therefore, the study focuses on the relationship between firefighters’ deaths and the following variables: age, emergency, the nature of the death, and the cause of death. We will present death dates in a simplified form for 9/11 because of its uniqueness. The study did not include names and ranks in the statistical analysis because they were not relevant to the relationship between firefighters’ deaths and the variables that the study was focusing on. The study also excluded activity, property type, and duty from the analysis because the study felt that other related items could better explain death.
We conducted an analysis to determine the firefighter fatalities according to their classification. The results showed that the difference between the two groups is small. This suggests that volunteer firefighters are also active at accident scenes.
library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.1.3 ✔ readr 2.1.4
## ✔ forcats 1.0.0 ✔ stringr 1.5.0
## ✔ ggplot2 3.4.4 ✔ tibble 3.2.1
## ✔ lubridate 1.9.3 ✔ tidyr 1.3.0
## ✔ purrr 1.0.2
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(here)
## here() starts at /Users/roxson/Downloads
library(ggplot2)
library(lubridate)
firefighter_fatalities <- read_csv(file = "database.csv")
## New names:
## • `` -> `...14`
## Warning: One or more parsing issues, call `problems()` on your data frame for details,
## e.g.:
## dat <- vroom(...)
## problems(dat)
## Rows: 2005 Columns: 14
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr (12): First Name, Last Name, Rank, Classification, Date of Incident, Dat...
## dbl (1): Age
## lgl (1): ...14
##
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
filtered_data <- firefighter_fatalities%>%
filter(Classification == "Volunteer" | Classification == "Career")
filtered_data
## # A tibble: 1,832 × 14
## `First Name` `Last Name` Age Rank Classification `Date of Incident`
## <chr> <chr> <dbl> <chr> <chr> <chr>
## 1 Robert Pollard 64 Firefighter Volunteer Dec 31, 1999
## 2 Lee Purdy 57 Pump Operat… Volunteer Jan 8, 2000
## 3 Ronald Osadacz 36 First Assis… Volunteer Jan 11, 2000
## 4 Allen Streeter 58 Firefighter Volunteer Jan 11, 2000
## 5 Gary Bankert, Sr 37 Firefighter Volunteer Jan 15, 2000
## 6 Juan De Leon 53 Captain Career Jan 17, 2000
## 7 Ernest Young 52 Firefighter… Volunteer Jan 16, 2000
## 8 James Altic 47 Fire Chief Volunteer Jan 17, 2000
## 9 Brian Burnett 23 Firefighter Volunteer Oct 28, 1999
## 10 Walter Gass 74 Captain Volunteer Jan 27, 2000
## # ℹ 1,822 more rows
## # ℹ 8 more variables: `Date of Death` <chr>, `Cause Of Death` <chr>,
## # `Nature Of Death` <chr>, Duty <chr>, Activity <chr>, Emergency <chr>,
## # `Property Type` <chr>, ...14 <lgl>
p <- ggplot(data = filtered_data,
mapping = aes(x = Classification, fill = Classification))
p + geom_bar (mapping = aes(position = "dodge", y = ..prop.., group = 1)) +
labs(title = "Proportions of Fatalities For C & V")
## Warning in geom_bar(mapping = aes(position = "dodge", y = ..prop.., group =
## 1)): Ignoring unknown aesthetics: position
## Warning: The dot-dot notation (`..prop..`) was deprecated in ggplot2 3.4.0.
## ℹ Please use `after_stat(prop)` instead.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
## generated.
## Warning: The following aesthetics were dropped during statistical transformation: fill
## ℹ This can happen when ggplot fails to infer the correct grouping structure in
## the data.
## ℹ Did you forget to specify a `group` aesthetic or to convert a numerical
## variable into a factor?
ggsave(plot = p + geom_bar() + labs(title = "Proportions of Fatalities For V & C"), filename = "images/figure1.png",
width = 6, height = 4, units = "in", bg = "transparent")
We performed a line graph analysis to track the number of deaths over time. The results showed that the number of deaths on September 11, 2001, was significantly higher than any other day of the year.
firefighter_fatalities <- firefighter_fatalities %>%
mutate(date = mdy(`Date of Death`))
p1 <- ggplot(data = firefighter_fatalities,
mapping = aes(x = date))
p1 + geom_line(stat = "count", color = "red",linewidth = 1.1) +
labs(title = "Firefighter Fatalities over Time",
x = "Date of Death",
y = "Count")
ggsave(plot = p1 + geom_line(stat = "count", color = "red",linewidth = 1.1) + labs(title = "Firefighter Fatalities over Time",
x = "Date of Death",
y = "Count"), filename = "images/figure2.png",
width = 6, height = 4, units = "in", bg = "transparent")
The image shows a bar graph of the number of fatalities in the 9/11 attacks by classification.This analysis was conducted to determine the impact of a single event on classification. The results showed that 9/11 had an impact on career firefighter. In order to analyze the general causes of career deaths, we will exclude the values of 9/11 from our subsequent analyses.
filtered_data2 <- firefighter_fatalities %>%
filter(date == as.Date("2001-09-11")) %>%
filter(Classification == "Volunteer" | Classification == "Career")
filtered_data2
## # A tibble: 341 × 15
## `First Name` `Last Name` Age Rank Classification `Date of Incident`
## <chr> <chr> <dbl> <chr> <chr> <chr>
## 1 Peter Brennan NA Firefighter Career Sep 11, 2001
## 2 Michael Brennan NA Firefighter Career Sep 11, 2001
## 3 Edward D'Atri NA Lieutenant Career Sep 11, 2001
## 4 Joseph Agnello NA Lieutenant Career Sep 11, 2001
## 5 Brian Ahearn NA Lieutenant Career Sep 11, 2001
## 6 Richard Allen NA Firefighter Career Sep 11, 2001
## 7 Eric Allen NA Firefighter Career Sep 11, 2001
## 8 James Amato NA Battalion … Career Sep 11, 2001
## 9 Calixto Anaya Jr. NA Firefighter Career Sep 11, 2001
## 10 Joseph Angelini Jr. NA Firefighter Career Sep 11, 2001
## # ℹ 331 more rows
## # ℹ 9 more variables: `Date of Death` <chr>, `Cause Of Death` <chr>,
## # `Nature Of Death` <chr>, Duty <chr>, Activity <chr>, Emergency <chr>,
## # `Property Type` <chr>, ...14 <lgl>, date <date>
p_911 <- ggplot(data = filtered_data2,
mapping = aes(x = Classification, fill = Classification))
p_911 + geom_bar(mapping = aes(position = "dodge", y = ..prop.., group = 1)) +
labs(title = "Firefighter Fatalities in 9/11")
## Warning in geom_bar(mapping = aes(position = "dodge", y = ..prop.., group =
## 1)): Ignoring unknown aesthetics: position
## Warning: The following aesthetics were dropped during statistical transformation: fill
## ℹ This can happen when ggplot fails to infer the correct grouping structure in
## the data.
## ℹ Did you forget to specify a `group` aesthetic or to convert a numerical
## variable into a factor?
ggsave(plot = p_911 + geom_bar() + labs(title = "Firefighter Fatalities in 9/11"),
filename = "images/figure3.png",
width = 6, height = 4, units = "in", bg = "transparent")
To confirm our assumption that firefighters are injured in emergencies, We investigated the ratio of emergency and non-emergency incidents using the ‘Emergency’ variable and created a bar chart. It showed that emergency situation was about 60%, and non-emergency situation was about 30%.
firefighter <- read_csv("database.csv")
## New names:
## • `` -> `...14`
## Warning: One or more parsing issues, call `problems()` on your data frame for details,
## e.g.:
## dat <- vroom(...)
## problems(dat)
## Rows: 2005 Columns: 14
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr (12): First Name, Last Name, Rank, Classification, Date of Incident, Dat...
## dbl (1): Age
## lgl (1): ...14
##
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
firefighter <- rename(firefighter, Cause_of_death = 'Cause Of Death')
firefighter <- rename(firefighter, Nature_of_death = 'Nature Of Death')
firefighter <- rename(firefighter, Date_of_death = 'Date of Death')
firefighter
## # A tibble: 2,005 × 14
## `First Name` `Last Name` Age Rank Classification `Date of Incident`
## <chr> <chr> <dbl> <chr> <chr> <chr>
## 1 Robert Pollard 64 Firefighter Volunteer Dec 31, 1999
## 2 Lee Purdy 57 Pump Operat… Volunteer Jan 8, 2000
## 3 Ronald Osadacz 36 First Assis… Volunteer Jan 11, 2000
## 4 Allen Streeter 58 Firefighter Volunteer Jan 11, 2000
## 5 Gary Bankert, Sr 37 Firefighter Volunteer Jan 15, 2000
## 6 Juan De Leon 53 Captain Career Jan 17, 2000
## 7 Ernest Young 52 Firefighter… Volunteer Jan 16, 2000
## 8 James Altic 47 Fire Chief Volunteer Jan 17, 2000
## 9 Brian Burnett 23 Firefighter Volunteer Oct 28, 1999
## 10 Walter Gass 74 Captain Volunteer Jan 27, 2000
## # ℹ 1,995 more rows
## # ℹ 8 more variables: Date_of_death <chr>, Cause_of_death <chr>,
## # Nature_of_death <chr>, Duty <chr>, Activity <chr>, Emergency <chr>,
## # `Property Type` <chr>, ...14 <lgl>
p_emergency <- ggplot(data = firefighter,
mapping = aes(x = Emergency))
p_emergency + geom_bar(aes(y= ..prop.., group = 1)) +
labs(x = NULL, title = "Emergency")
ggsave(plot = p_emergency + geom_bar(aes(y= ..prop.., group = 1)) +
labs(x = NULL, title = "Emergency") + labs(x = NULL, title = "Emergency"),
filename = "images/figure4.png",
width = 6, height = 4, units = "in", bg = "transparent")
The image shows a bar graph of the causes of death for firefighters by emergency status. In emergency situations, stress and collapse are the leading causes of death. However, in non-emergency situations, stress is the leading cause of death. The analysis of firefighter deaths shows that non-emergency causes are also significant. In particular, stress-related deaths are common in non-emergency situations. Therefore, hypothesis 1 is partially supported.
firefighter_emergency <- firefighter %>%
filter(Emergency %in% c("Yes", "No"))
p_cause_emergency <- ggplot(data = firefighter_emergency,
mapping = aes(x = Cause_of_death))
p_cause_emergency +
geom_bar(aes(y= ..prop.., group = 1), stat = "count") +
labs(x= "Cause of Death") +
coord_flip() +
facet_grid(~Emergency) +
labs( x = NULL, title = "Cause of death by Emergency")
ggsave(plot = p_cause_emergency +
geom_bar(aes(y= ..prop.., group = 1), stat = "count") +
labs(x= "Cause of Death") +
coord_flip() +
facet_grid(~Emergency) +
labs( x = NULL, title = "Cause of death by Emergency"),
filename = "images/figure5.png",
width = 6, height = 4, units = "in", bg = "transparent")
We wanted to find out which causes have the most significant impact on firefighter fatality. So using the ‘Nature of death’ variable we created the bar chart to compare the differences in proportions of nature of death. It turns out the highest proportion of deaths was due to trauma and heart attack, followed by suffocation, burns, and stroke.
p_nature <- ggplot(data = firefighter,
mapping = aes(x = Nature_of_death))
p_nature + geom_bar(aes(y= ..prop.., group = 1), stat = "count") +
labs(x= "Nature of Death", title = "Nature of Death") +
coord_flip()
ggsave(plot = p_nature + geom_bar(aes(y= ..prop.., group = 1), stat = "count") +
labs(x= "Nature of Death", title = "Nature of Death") +
coord_flip(),
filename = "images/figure6.png",
width = 6, height = 4, units = "in", bg = "transparent")
We wanted to explore whether there are differences in age distribution by classification, so we created density graph using age and classification variables. The result showed that career firefighters had a higher fatality rate in their 30s to 60s, while volunteer firefighter had a higher fatality rate in their 40s to 60s.
career_volunteer <- c("Career", "Volunteer")
p_age <- ggplot(data = subset(firefighter, subset = Classification %in% career_volunteer),
mapping = aes( x= Age,
fill = Classification))
p_age + geom_density(alpha = 0.4) +
labs(x= "Age", title = "Age Distribution")
## Warning: Removed 354 rows containing non-finite values (`stat_density()`).
ggsave(plot = p_age + geom_density(alpha = 0.4) +
labs(x= "Age", title = "Age Distribution"),
filename = "images/figure7.png",
width = 6, height = 4, units = "in", bg = "transparent")
## Warning: Removed 354 rows containing non-finite values (`stat_density()`).
We wanted to compare the cause of death based on age in each classification group. So, we filtered the volunteer group and created a bar graph to display the nature of death as proportion within age groups. The result showed that fatality rates were highest in the 40s, 50s, and 60s, with heart attack accounting for the largest proportion.
volunteer_data <- firefighter %>%
filter(Classification == "Volunteer") %>%
mutate(Age_Group = cut(Age, breaks = seq(10, 100, by = 10), labels = seq(10, 90, by = 10)))
volunteer_data
## # A tibble: 880 × 15
## `First Name` `Last Name` Age Rank Classification `Date of Incident`
## <chr> <chr> <dbl> <chr> <chr> <chr>
## 1 Robert Pollard 64 Firefighter Volunteer Dec 31, 1999
## 2 Lee Purdy 57 Pump Operat… Volunteer Jan 8, 2000
## 3 Ronald Osadacz 36 First Assis… Volunteer Jan 11, 2000
## 4 Allen Streeter 58 Firefighter Volunteer Jan 11, 2000
## 5 Gary Bankert, Sr 37 Firefighter Volunteer Jan 15, 2000
## 6 Ernest Young 52 Firefighter… Volunteer Jan 16, 2000
## 7 James Altic 47 Fire Chief Volunteer Jan 17, 2000
## 8 Brian Burnett 23 Firefighter Volunteer Oct 28, 1999
## 9 Walter Gass 74 Captain Volunteer Jan 27, 2000
## 10 Robert Ketelson 59 Firefighter Volunteer Jan 27, 2000
## # ℹ 870 more rows
## # ℹ 9 more variables: Date_of_death <chr>, Cause_of_death <chr>,
## # Nature_of_death <chr>, Duty <chr>, Activity <chr>, Emergency <chr>,
## # `Property Type` <chr>, ...14 <lgl>, Age_Group <fct>
p_nature_v <- ggplot(data = volunteer_data,
mapping = aes(x = Age_Group, fill = Nature_of_death))
p_nature_v + geom_bar() +
labs(x = "Age Group",fill = "Nature of death", title = "Nature of Death in Volunteer Group")
ggsave(plot = p_nature_v + geom_bar() +
labs(x = "Age Group",fill = "Nature of death", title = "Nature of Death in Volunteer Group"),
filename = "images/figure8.png",
width = 6, height = 4, units = "in", bg = "transparent")
Next, we filtered the career group.The result showed that fatality rates in career group were highest in the 30s, 40s, and 50s, with heart attack accounting for the largest proportion.
career_data <- firefighter %>%
filter(Classification == "Career") %>%
mutate(Age_Group = cut(Age, breaks = seq(10, 100, by = 10), labels = seq(10, 90, by = 10))) %>%
mutate(date = mdy(Date_of_death)) %>%
filter(date != "2001-09-11")
career_data
## # A tibble: 612 × 16
## `First Name` `Last Name` Age Rank Classification `Date of Incident`
## <chr> <chr> <dbl> <chr> <chr> <chr>
## 1 Juan De Leon 53 Captain Career Jan 17, 2000
## 2 Richard Spink 48 Fire Lieute… Career Feb 13, 2000
## 3 Kimberly Smith 30 Firefighter Career Feb 14, 2000
## 4 Lewis Mayo III 44 Firefighter Career Feb 14, 2000
## 5 Evangelino Rodriguez 53 Sergeant Career Feb 21, 2000
## 6 William Blakemore 48 Private Career Mar 8, 2000
## 7 Javier Lerma 41 Lieutenant Career Mar 8, 2000
## 8 David Sharp II 31 Firefighter… Career Mar 17, 2000
## 9 Kevin Sterenchuk 48 Administrat… Career Mar 27, 2000
## 10 Kendall Bryant 36 Firefighter… Career Mar 31, 2000
## # ℹ 602 more rows
## # ℹ 10 more variables: Date_of_death <chr>, Cause_of_death <chr>,
## # Nature_of_death <chr>, Duty <chr>, Activity <chr>, Emergency <chr>,
## # `Property Type` <chr>, ...14 <lgl>, Age_Group <fct>, date <date>
p_nature_c <- ggplot(data = career_data,
mapping = aes(x = Age_Group, fill = Nature_of_death))
p_nature_c + geom_bar()+
labs(x = "Age Group", fill = "Nature of death", title = "Nature of Death in Career Group except 9/11")
ggsave(plot = p_nature_c + geom_bar() + labs(x = "Age Group", fill = "Nature of death", title = "Nature of Death in Career Group except 9/11"),
filename = "images/figure9.png",
width = 6, height = 4, units = "in", bg = "transparent")