I'm working on some stcox analyses where I want to test different thresholds of exposure and I'd like to show the survival graphs all on one plot.
My syntax looks like this for the stcox, where threshold30 is a binary variable:
svyset [pweight=weight]
stset deathdate [pw=weight], id(idauniq) failure(Entry_death==1) origin(interviewdate) scale(365.25)
stcox threshold30 $covariates
stcurve, survival at1(threshold30=0) at2(threshold30=1) xlabel(0(2)14) ylabel(0.7(0.05)1) name(Survival_Cox30)
stcox threshold40 $covariates
stcurve, survival at1(threshold40=0) at2(threshold40=1) xlabel(0(2)14) ylabel(0.7(0.05)1) name(Survival_Cox40)
stcox threshold50 $covariates
stcurve, survival at1(threshold50=0) at2(threshold50=1) xlabel(0(2)14) ylabel(0.7(0.05)1) name(Survival_Cox50)
I'd be grateful for advice on how to combine these stcurve graphs onto one graph.
Best wishes,
Daisy
Related Posts with Combining stcurve graphs from different stcox analyses
Help on labeling categorical variablesHello I'm working with my data file but find difficulty on labelling derived categorical variables.…
IV Probit error: "could not find initial values"Hello All! Does anyone have an idea why this error message could be popping up? Or what does it mea…
Drop observations after the last non missing value a variableHi, I would like to drop observations after the last non missing value of the variable WC01001A by …
matsize and Pesaran estimationLadies & Gentlemen, up to 7 regressors, STATA could produce regression output successfully. When…
Proportional Reduction in Error and Percent Correctly Predicted after Multinomial ProbitDear Colleagues, I am using Stata 14.2 to estimate a multinomial probit model of vote choice in the…
Subscribe to:
Post Comments (Atom)
0 Response to Combining stcurve graphs from different stcox analyses
Post a Comment