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: generating distinct ids for "repeated" numbers of distinct groups I have distinct groups (case-control) but the matchedIDs seem to repeat itself. I want each distinc…
Labeling order numbersexample data ORDER ID The passing time 61785B020027AD01 1 61785B020027AD01 0 61785B020027AD…
How to create multiple tables in single word file Using Outreg2 (three different Panel)Hi, I want to create three separate tables for three panels in a word file. I know how to use append…
Finding sample size for treatment and control with PSMHi, I'm new to the forum but had a question I can't seem to figure out. I am using a PSM regression …
Test for Autocorrelation and Time lagged variablesHello i ve got following questions.. 1. Is there a test for autocorrelation that fits with pooled …
Subscribe to:
Post Comments (Atom)
0 Response to Combining stcurve graphs from different stcox analyses
Post a Comment