Code and analysis for the study: "The effect of climate anomalies and ambient air pollution on spontaneous miscarriage in Ghana" (Environmental Epidemiology, 2025). Includes data processing, INLA modeling, and visualization scripts used to generate study results.
# SpontaneousMiscarriage_ClimateAir
This repository contains the code and analyses for the paper:
**Amegbor, Prince M.a,*; Quansah, Reginaldb; Gu, Lijuanc.**
*The effect of climate anomalies and ambient air pollution on spontaneous miscarriage in Ghana: Evidence from a national cross-sectional survey.*
Environmental Epidemiology 9(5): e420, October 2025.
DOI: 10.1097/EE9.0000000000000420
---
## Repository Structure
- **MainResults.R**
Contains the code for the primary analyses presented in the main manuscript. This includes:
- Bayesian models of climate anomalies and air pollution exposures
- Calculation of hazard ratios and 95% credible intervals
- Generation of summary tables for the main manuscript
- **SupplementaryResults.R**
Contains the code for all supplementary analyses, including:
### Appendix B – Region-Specific Effects
- Results of region-specific effects on spontaneous miscarriage
### Appendix C – Preconception Exposure by Rural-Urban Residency
- Figure C1 – Non-linear association between preconception mean temperature anomaly and spontaneous miscarriage
- Figure C2 – Non-linear association between preconception maximum temperature anomaly and spontaneous miscarriage
- Figure C3 – Non-linear association between preconception precipitation anomaly and spontaneous miscarriage
- Figure C4 – Non-linear association between preconception PM2.5 exposure and spontaneous miscarriage
- Figure C5 – Non-linear association between preconception Carbon Monoxide (CO) exposure and spontaneous miscarriage
- Figure C6 – Non-linear association between preconception Nitrogen Dioxide (NO2) exposure and spontaneous miscarriage
- Figure C7 – Non-linear association between preconception Sulphur Dioxide (SO2) exposure and spontaneous miscarriage
- Figure C8 – Non-linear association between preconception Ozone (O3) exposure and spontaneous miscarriage
- Figure C9 – Non-linear association between preconception Enhanced Vegetation Index (EVI) exposure and spontaneous miscar …