Dear all,
I am running a stratified cox model on a firm-year dataset. The command i use is:
stset year, failure (event)
stcox x1 x2 x3 ...xN , vce( cluster firm id) strata(firm id)
x1 is my variable of interest, which is a dummy variable (1 for treated, 0 for not treated)
One of my reviewers strongly suggested me to stratify my regression at the firm level, to achieve firm fixed effects. I understand that this would allow the baseline hazard function to vary by firm.
I would like to know if there is a way i could use plot a survival/hazard curve using the stcurve command.
Right now, if i tried
stcurve,hazard at(x1=1) at2(x1=0) kernel(gauss)
I get the following error message:
"stcurve not allowed after stcox, strata()"
Thank you so much for your help.
Related Posts with Plotting curves for hazard model with firm level stratification
Panel data + quantile regressionHello everyone, for an important seminar at my University I am running a gravity model of trade (Ja…
Renaming variables with modified versions of label namesHello I have data that is set out with a first row being numbers that I would like as variable name…
two part model vs heckmandear all do you guys know what is difference btw two part model and heckman model? thank you all! …
ppml vs ml with robust covariance estimationdeal all, i hope to use gravity model- I wonder what is difference between ppml and ml with robust c…
Pseudo R-squareds for melogitHi, Are there any packages to estimate (several) pseudo R-squareds after melogit? - I have noted t…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting curves for hazard model with firm level stratification
Post a Comment