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
How to save a Kaplan-Meier survival point estimate to a local macro?Hello STATA Community, I am currently using version 15.1 of STATA. I have some straightforward sur…
xtwest commandi am trying to apply the xtwest command i get an error i have one dependent variable and 5 independe…
Can I do a OLS Regression if the distribution of my DV is like this?The dependent variable is the proportion of the ** time / *** time. Because this is a proportion, th…
Variable label in generate?Dear All, I'd like to confirm whether there is any syntax that would allow me to prescribe variable…
Leave out 90th percentileI am using a census dataset which has these following variables: county industry income I know…
Subscribe to:
Post Comments (Atom)
0 Response to Combining Cox Proportional Hazards model and Difference-in-Differences
Post a Comment