Hi, I have some conceptional difficulties with running a DiD cox regression. The linear DiD model is just y=ß0+ß1*x1+ß2*x2*ß3*x1*x2, where ß3 is the difference of x1 in x2 (perhaps this expression is not entirely correct?). However, in cox regression my original approach to DiD was to calculate the hazard ratios separately for the treatment and control groups with bivariate cox regressions and to manually calculate the ratios of those two hazard ratios afterwards. My simple school math tells my that this is should result in the adjusted hazard ratios provided that the measured effect in the treatment group is a superposition of the overall time trend and the treatment effect.
However, if I then compare my results to a more strict application of the DiD approach where I put the indicator variables of group and time and the interaction term in one model (h=ß0+exp(ß1*time+ß2*group+ß3*time*group)), the estimates for exp(ß3) are somewhat similar to the first results but not nearly the same.
Can somebody please explain how this difference arises and which estimate is the correct one?
However, if I then compare my results to a more strict application of the DiD approach where I put the indicator variables of group and time and the interaction term in one model (h=ß0+exp(ß1*time+ß2*group+ß3*time*group)), the estimates for exp(ß3) are somewhat similar to the first results but not nearly the same.
Can somebody please explain how this difference arises and which estimate is the correct one?
Comment