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
Merging two databases. With different dates. Best method?Dear members, These days I am working on my (master) thesis and I am working with Stata in order t…
defining perfect sequence pairs and average non-perfect pairs of dataDear all, In the data structure below I have a perfect sequences Buy (B) Sell (S). Sometimes Buy or…
bootstrapping after xtregHi, I am using xtreg for a panel-data analysis and after xtreg, I need to do bootstrap. The problem …
destringingHello, I was wondering if anyone could help me destring certain variable in my dataset. I have a var…
Labeling multiple variables using the foreach loopI am trying to learn the foreach loop command in Stata 13.0. I want to label multiple variables usin…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting curves for hazard model with firm level stratification
Post a Comment