This project focuses on analyzing mortality data, specifically examining excess mortality in Puerto Rico using datasets from the New York Times and the excessmort package.
Puerto Rico Mortality Data: Utilize puerto_rico_counts from the excessmort package. NY Times PDF Report:
Code Directory
- The report is written in code directory 'final-project.qmd', with corresponding pdf and html in docs directory.
- For question 5, the ny times data fetch code is saved in code directory, with data stored in data directory. The absolute difference between Outcome_NYTimes (from the NY Times dataset) and Outcome_DailyData (from the Puerto Rico dataset) were plotted in supplementary_files directory.
Docs Directory
- final-project.pdf: A PDF version of the report for easy sharing and printing.
- final-project.html: An HTML version of the report for online viewing.
Data Directory
- Contains datasets used in the analysis, including data pulled from the New York Times.
Supplementary Files Directory
- Pre-2017 Baseline Analysis: Established baseline mortality statistics by aggregating data across complete weeks, focusing on different age groups and sexes to assess historical trends (Task 2).
- Age Group Combination: Streamlined age categories into broader groups to enhance trend analysis and visualize expected mortality patterns, aiding in comparisons with post-2017 data (Task 2).
- Contains plots of weekly excess deaths from 2017 to 2018 for each age group, separated by sex (Task 4).
- Contains plots comparing the absolute differences between two datasets (Task 5): Outcome_NYTimes from the NY Times dataset and Outcome_DailyData from the Puerto Rico dataset.
For more details on the analysis and results, please refer to the final project report located in the docs directory.