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
 Implementing Statistical Disclosure/Suppressing resultsHi, I need to filter tables (for example summary statistics exported using tabstat) sent to excel fr… Implementing Statistical Disclosure/Suppressing resultsHi, I need to filter tables (for example summary statistics exported using tabstat) sent to excel fr…
 Lagged variables: transition from one condition to anotherDear users,
I am new of longitudinal analysis and I am running into a problem that may be easy for y… Lagged variables: transition from one condition to anotherDear users,
I am new of longitudinal analysis and I am running into a problem that may be easy for y…
 How to add factor variable in -rangestat- rolling regressionHi Stata experts,
I would like to run a rolling 5-year fixed window historical panel regression sta… How to add factor variable in -rangestat- rolling regressionHi Stata experts,
I would like to run a rolling 5-year fixed window historical panel regression sta…
 ASROL Version update: Improvements in the calculation of geometric mean and products in a rolling window and over groups in StataVersion 4.5.1 dated December 11, 2018, of asrol is now available on SSC (thanks to Kit Baum as usual… ASROL Version update: Improvements in the calculation of geometric mean and products in a rolling window and over groups in StataVersion 4.5.1 dated December 11, 2018, of asrol is now available on SSC (thanks to Kit Baum as usual…
 regress market model for a lot of variables and save the betasHi everyone,,
I'm not very pratical with this program and i'm trying to improve my skills.
I'm usi… regress market model for a lot of variables and save the betasHi everyone,,
I'm not very pratical with this program and i'm trying to improve my skills.
I'm usi…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting curves for hazard model with firm level stratification
Post a Comment