Spatiotemporal variability in the association between mental illness and substance use mortality and unemployment in the contiguous US
- This repository includes analysis codes of the published article in Applied Geography [Link]
- The outcome data was from the Institute of Health Metrics and Evaluation (IHME)
- The covariate data were from United States Census Bureau and U.S. Bureau of Labor Statistics
- The main analysis was done with R and R packages INLA, dplyr, tidyr, spdep, and Matrix.
- I strongly recommend users to activate PARDISO solver in R-INLA for spatiotemporal model fitting to reduce time to fit models.
./Code
: code files for the main analysis./Data
: the data for the analysis (cleaned)