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
Doing endogenous regime switching regressionPlease can you help me with these questions? 1. What STATA command can I use to run an endogenous re…
Random effect model - controlling for timeHy folks, i have the following panel data: ID Birthyear Year of Assessment Fahter played footba…
System GMM with panel dataHi I had run a system GMM panel data regression on STATA 14 and I got Variance-covariance matrix o…
Need to Highlight specific points on scatter plot, trying to create new variableHello, beginner to STATA and coding in general. I have a dataset with countries. I created a new var…
How to plot an interaction term in multinomial logistic regression model ?Dear statalists, Hope this post finds you well. I have tried to plot a graph with an interaction …
Subscribe to:
Post Comments (Atom)
0 Response to Combining stcurve graphs from different stcox analyses
Post a Comment