This repo features a study on the effects of heart disease and diabetes on mortality rates in Alberta using a Poisson model and a negative binomial model from 2016-2021. The data was collected from the Alberta Government and can be accessed from this link: https://open.alberta.ca/opendata/leading-causes-of-death
The study was accomplished partly with code taken from Telling Stories with Data (Alexander, 2023). The analysis was conducted through Rstudio using "R version 4.3.2 (2023-10-31)
The repo is structured as:
data/raw_datacontains the raw data as obtained from the Alberta Government.data/analysis_datacontains the cleaned dataset that was constructed.paper.qmdcontains the fitted models.othercontains relevant literature, details about LLM chat interactions, and sketches.papercontains the files used to generate the paper, including the Quarto document and reference bibliography file, as well as the PDF of the paper.scriptscontains the R scripts used to simulate, download and clean data.
Aspects of the code were written with the help of the auto-complete tool, Chat-GPT4. Several errors were fixed with the help of ChatGPT-4 and the entire chat history is available in other/llm/usage.txt.