Dear All,
My question concerns whether it is possible to combine a Cox proportional hazards model with a difference-in-differences approach and if so, how that would be implemented in Stata. I am very new to Cox proportional hazard models so please excuse my lack of knowledge. I truly appreciate any help.
My case is the following: I have a panel of firms covering a large range of years. In some year several industries were affected by an increase in tariffs (treatment group) whereas others were not (control group). Crucially, I have data for years both before and after this tariff change occurred. What I am interested in is how this policy change affected the probability of firm survival. Naturally, I would fit a DID model since I have before and after data as well as a treatment and control group. However, I am interested in whether the increase in tariffs decreased the likelihood of failure. As well, my data is right-censored. Thus, from reading the literature I got the sense that I should combine the DID approach with a Cox model. However, I am unsure how to do this.
Specifically, I am wondering
1) How should I structure my data? At this moment I have one observation for each firm and year it was in existence. However, for Cox models the data usually seems to be organized in a way so that each firm has only one line.
2) Is there a straightforward way to implement a DID analysis using the Cox model? How would that be coded?
Again, thank you very much for considering my case and I appreciate any help!
All the best
Leon
Related Posts with Combining Cox Proportional Hazards model and Difference-in-Differences
Issue with binary logistic regression results when a predictor has only one of the binary responses.I'm using binary logistic regression, and I have encountered a problem with a predictor which has al…
Problems with Outreg2 for my dissertationHello, I am having some problems running my code in stata. The code is as follows: regress dependen…
Find and Replace all text within brackets?Hi, I am working with a panel dataset whose variable names are very different for every wave of the …
Lead variable in unbalanced panel dataHi All, I have annual data on the sales revenue of firms. I have the year variable as follows: year …
BHAR - Buy and Hold abnormal returnsHello everyone, hope you are doing well. I wanted to know how I could code for Buy and hold abnormal…
Subscribe to:
Post Comments (Atom)
0 Response to Combining Cox Proportional Hazards model and Difference-in-Differences
Post a Comment