This is the code for the unpublished paper of "Cause-Specific Mortality After Spousal Bereavement: A Danish Register-based Cohort Study of 223,500 Older Adults".
The coding has been done by Mathilde Marie Brünnich Sloth and Alexandros Katsiferis
*** INSERT ABSTRACT upon approval for publication***
4 files are presented:
- R packages: R version and packages used with references
- Data preprocessing: merging data and tidying the data for analysis
- Analysis I: the average bereavement effect on cause-specific mortality
- Analysis II: predicting cause-specific mortality
Data availability: The data for the analysis is individual level data from Statistics Denmark. The data can only be shared under specific conditions. According to Danish law, scientific organizations can be authorized to work with data within Statistics Denmark and can provide access to individual scientists inside and outside of Denmark. Data are available via the Research Service Department at Statistics Denmark: www.dst.dk/da/TilSalg/Forskningsservice for researchers who meet the criteria for access to confidential data.