Online Appendix for "Estimating Policy Impact in a Difference-in-Differences Hazard Model: A Simulation Study", by David A Hsieh
R script
for generating the simulated data:
onedid_random_sample_25k.R.
By downloading or copying this R script, you confirm that you will abide by the following conditions:
1) You must cite the following article in any document using the information based on this file:
David A Hsieh (2025) "Estimating Policy Impact in A Difference-in-Differences Hazard Model: A Simulation Study." Risks
2) You must place the following URL in a footnote to help others find this code:
https://people.duke.edu/~dah7/OnlineAppendices/OnlineAppendixOneriskDiD.html
3) By downloading or copying the R script, you confirm that you are assuming all risk for the use of this script.