This repository contains the code for the simulation and data application sections of the paper. The workflow is:
funcs.R
contains all utility functions for the simulation and data applicaton. The main function is 'ctseff' adapted from the npcausal package with minor modifications.simulation
contains the code for the simulation section of the paper. The simulation is fully reproducible.data_application
contains the code for the data application section of the paper. The data application is not fully reproducible as the data is not publicly available.
The computations in this paper were run on the FASRC cluster supported by the FAS Division of Science Research Computing Group at Harvard University. Medicare mortality data are stored at a Level-3 secured data platform on Research Computing Environment, supported by the Institute for Quantitative Social Science in the Faculty of Arts and Sciences at Harvard University.
The exposure, confounders, and mortality data used in the data application were adapted from: X. Wu, D. Braun, J. Schwartz, M. A. Kioumourtzoglou, F. Dominici, Evaluating the impact of long-term exposure to fine particulate matter on mortality among the elderly. Sci. Adv. 6, eaba5692 (2020).. We would like to thank the authors for sharing the data.
If you have any questions, please contact us at [email protected] or [email protected].