Assessing the EPA's recent recommendation to reduce PM2.5 from 12 μg/m3 to 10, 9, and 8 μg/m3.
The scripts described below are presented in the order with which they should be run.
Analysis/data_process.R
: Creates stratified data sets fromNational Causal
data.Analysis/fit_weights.R
: Applies functions fromFunctions/calibrate.R
to fit nuisance inverse-probability/balancing weight models.Analysis/fit_models.R
: Applies functions fromFunctions/gam_models.R
to fit nuisance outcome models.Analysis/fit_erf.R
: Uses code fromFunctions/erf_models.R
and the output from (2) and (3) to fit the exposure response functions.Analysis/fit_boot.R
: Script for generating bootstrap samples used to estimate standard errors of the ERCs from (2)-(4).
Functions/calibrate.R
: Generic calibration function for fitting covariate balancing weights. Usable for binary, categorical, or continuous exposures. All that is needed is the correct target and the associated constraint. Implemented inAnalysis/fit_weights.R
.Functions/gam_models.R
: Wrapper functions for fitting spline outcome models (formerly generalized additive outcome models) assuming a quasi-Poisson likelihood. Functions output components used to construct the doubly-robust pseudo-outcome applied inFunctions/erf_models.R
. Implemented inAnalysis/fit_models.R
.Functions/erf_models.R
: Nonparametric doubly-robust estimator of the exposure response curve using the pseudo-outcomes fit with components found inFunctions/calibrate.R
andFunctions/gam_models.R
. Implemented inAnalysis/fit_erf.R
.
Contains scripts for generating plots and tables from data generated in (1) and the models fit in (4)-(5).
Contains code for fitting G-Computation and GPS as a regressor sensitivity analyses. Also included is code to visualize covariate balance for various weighting methods.