Skip to content

Public Available Code and Data to Reproduce Analyses in "Assessing the causal effects of a stochastic intervention in time series data: Are heat alerts effective in preventing deaths and hospitalizations?"

Notifications You must be signed in to change notification settings

wxwx1993/TS_Stochastic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Time Series Stochastic Causal Estimands: Assessing Heat Alert Effectiveness in Reducing Morbidity and Mortality

This is the data repository for public available code and data to reproduce analyses in Wu, X., Weinberger, K. R., Wellenius, G. A., Braun, D. and Dominici, F., 2020. Time Series Stochastic Causal Estimands: Assessing Heat Alert Effectiveness in Reducing Morbidity and Mortality

Simulation Code:
ts_ips_fun2.R contains the functions to generate simulated data sets under each scenario and estimate the proposed estimator.

FAS folder contains all the necessary implementation code to run all simulation replicates at the Odyssey cluster, supported by the FAS Division of Science, Research Computing Group at Harvard University.

Table2.R contains the code to reproduce Table 2 in the manuscript.

Figure4.R contains the code to reproduce Figure 4 in the manuscript.

Application Code:
ts_ipw_function.R contains the function to estimate the proposed estimator.

RCE folder contains the function to estimate the proposed estimator. contains all the necessary implementation code to analyze the real data to estimate the causal effect curves among Medicare population in each of 2817 US counties at the 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.

meta.R contains the code to run random-effect meta-analysis that pooled causal effect cruve from 2817 US counties.

Table1.R contains the code to reproduce Table 1 in the manuscript.

Figure1.R contains the code to reproduce Figure 1 in the manuscript.

Figure2.R contains the code to reproduce Figure 2 in the manuscript.

Figure5.R contains the code to reproduce Figure 5 in the manuscript.

Data:
The authors acquired daily time series data on 1) daily maximum heat index; 2) issuance of heat alerts; and 3) number of all-cause deaths among the entire Medicare enrollees and cause-specific hospitalizations for five heat-related diseases (heat stroke, urinary tract infections, septicemia, renal failure, fluid and electrolyte disorders) using Clinical Classifications Software (CCS) groupings of principal discharge diagnosis codes among the Medicare Fee-for-Service (FFS) enrollees in 2817 U.S. counties within the warm season (April-October) from 2006 to 2016 (a total of 2354 days).

Heat Alert: We gathered text files containing records of all non-precipitation alerts issued by NWS between 2006 and 2016 from the National Oceanic and Atmospheric Administration (NOAA). We used the information in the file header, which contains information on the type, location, and timing of each alert in a standard format, to identify the date and location of each heat alert issued between April 1st and October 31st for the years 2006 to 2016 in the contiguous US. We then created a daily time series containing a binary variable for the issuance of heat alerts for each of the 2817 US counties. We defined “heat alerts” to include both heat advisories (a type of heat alert issued when less severe heat is forecast) and excessive heat warnings (a type of heat alert issued when more severe heat is forecast).

Heat Index: We obtained 4-km gridded estimates of daily maximum temperature and vapor-pressure deficit using the Parameter-elevation Regressions on Independent Slopes Model (PRISM). From these variables, the time series of population-weighted daily maximum heat index is calculated for each county as previously described by Spangler et al, 2019.

Medicare Outcome: We obtained daily all-cause deaths among the entire Medicare enrollees and cause-specific hospitalizations for five heat-related diseases (heat stroke, urinary tract infections, septicemia, renal failure, fluid and electrolyte disorders) using Clinical Classifications Software (CCS) groupings of principal discharge diagnosis codes among the Medicare Fee-for-Service (FFS) enrollees.

For Medicare data, Research Identifiable Files (RIF) on the Medicare population has previously been disclosed to team members at the Harvard School of School of Public Health (HSPH) by the Centers for Medicare and Medicaid Services (CMS) under the strict terms of a CMS Data Use Agreement, which requires stringent privacy protections. Medicare population individual-level 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. Interested parties may submit their research proposals to CMS and request the same data files that we use in this paper. More information can be found in the CMS website (https://www.cms.gov/Research-Statistics-Data-and-Systems/Files-for-Order/Data-Disclosures-Data-Agreements/Overview).

About

Public Available Code and Data to Reproduce Analyses in "Assessing the causal effects of a stochastic intervention in time series data: Are heat alerts effective in preventing deaths and hospitalizations?"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published