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
reg i.id i.year,vce(cl id) vs. xtreg i.year,fe rDear all, We know "reg i.id i.year,vce(cl id)" is the same as "xtreg i.year,fe r",but why are the re…
Replace missing values smartlyHi all, I am writing since I have a potentially simple task which however I am not able to figure o…
Econometrics questions : Functional form choiceHi statalist, I try to estimate the effect of a monetary bonus on physicians’ activity. I would lik…
competing risk without covariatesI want to compare the risk of dying of a specific cancer versus "other causes" in a large sample. Co…
Extracting the column percentages from two tabDear Statalist, I need to calculate the difference between two percentages coming from two different…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting curves for hazard model with firm level stratification
Post a Comment