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
Importing csvHi, I have an easy problem, but unfortunately I could not solve it. When I want to import data fro…
Confidence interval for graphsHi all, I am plotted a connected graph using this code: Code: twoway (connected weekmeanifference …
Herfindahl-Hirschman Index for banksHello, I have a problem creating Herfindahl-Hirschman Index for my data I tried scc install hhi but…
Looping a regression command sequentially by observation and storing each model.Hi all, Apologies if this is very simple or has been asked before. I have searched through many top…
removing text from string variable with date formatHello, I have a string variable that looks like this: 13-03-2014(Late visited). How can I remove som…
Subscribe to:
Post Comments (Atom)
0 Response to Combining Cox Proportional Hazards model and Difference-in-Differences
Post a Comment