I have a balanced panel dataset (the time frequency is yearly). I turned it into a dataset for survival analysis. I noticed a previously published paper in my research area claimed that they included year fixed effects in the Cox Proportional Hazard model. I was skeptical because I thought year fixed effects are simply a nonlinear form of time and therefore the duration. I tried including year fixed effects in stcox anyway. This is what I got.
stcox X i.year, nohr vce(robust)
Wald chi2(1) = 32.09
Log pseudolikelihood = -1199.478 Prob > chi2 = 0.0000
(Std. Err. adjusted for 351 clusters in town2)
------------------------------------------------------------------------------
| Robust
_t | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
X | 2.228435 .3934043 5.66 0.000 1.457377 2.999494
|
year |
2011 | 2.995783 . . . . .
2012 | 4.893169 . . . . .
2013 | 3.70227 . . . . .
2014 | 3.991488 . . . . .
2015 | 4.319502 . . . . .
2016 | 4.085234 . . . . .
2017 | 5.017047 . . . . .
------------------------------------------------------------------------------
The coefficient on X was exactly the same as from a stcox without year fixed effects. No standard errors were estimated for these year fixed effects. Does it mean they were estimated as random effects? Can these year fixed effects be included in the first place?
stcox X i.year, nohr vce(robust)
Wald chi2(1) = 32.09
Log pseudolikelihood = -1199.478 Prob > chi2 = 0.0000
(Std. Err. adjusted for 351 clusters in town2)
------------------------------------------------------------------------------
| Robust
_t | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
X | 2.228435 .3934043 5.66 0.000 1.457377 2.999494
|
year |
2011 | 2.995783 . . . . .
2012 | 4.893169 . . . . .
2013 | 3.70227 . . . . .
2014 | 3.991488 . . . . .
2015 | 4.319502 . . . . .
2016 | 4.085234 . . . . .
2017 | 5.017047 . . . . .
------------------------------------------------------------------------------
The coefficient on X was exactly the same as from a stcox without year fixed effects. No standard errors were estimated for these year fixed effects. Does it mean they were estimated as random effects? Can these year fixed effects be included in the first place?
Comment