This repository documents part of my workflow for my Masters of Public Health capstone project. I completed a systematic review and meta-analysis to assess whether previously incarcerated persons are at greater risk of suicide:
Previously incarcerated persons are at an elevated risk for suicide compared to the general population.
For this project I challenged myself to automate what parts I could, which was possible after completing the systematic review portion of the study to generate the dataset for the meta-analysis. Thank you to my classmates for going through that (painful) process!
Please feel free to reach out to me if you'd like to use these materials for your research or found this workflow helpful.
-
data_analysis.Rmd
: Data analysis and the creation of figures and tables. -
writing.Rmd
: The entire capstone paper. I used an .Rmd so that I could programatically output versions of my draft (check out the YAML example) as well as version control my work. An added bonus was the ability to reference a .bib file exported from Zotero for my references. -
/capstone_slides/capstone_slides.Rmd
: I used the xaringan package by Yihui to generate HTML slides. Since I created my objects in R, I could easily include them in the slide output. -
map_testing.r
: I played around with creating a visualization of where each paper took place using the leaflet maps package. I ended up not using the graph but it was a fun exercise.
Forest plot of suicide risk among previous incarcerated persons compared to the general population, results of random effects meta-analysis with all studies
Sensitivity analysis on the random-effects model with all studies included