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
mixed effects model with random slopes for categorical variablesDear all I am trying to estimated the effect of positive and negative changes in income on GHQ (wel…
HCUP KID 2016 DataPlease, I'm having trouble using the STATA upload program for my KID 2016 dataset. I have a STATA15 …
looking for helpDear all, I am doing my thesis using ivregress 2sls. I face problem to export the first stage result…
sequential counting helpHi, I have a dataset with two different procedures (proc1 & proc 2). Some id's have multiple pr…
Is there a way to export a codebook to excel with notes included?I am using the codebookout module to export a data set's codebook to excel. That said, it doesn't ex…
Subscribe to:
Post Comments (Atom)
0 Response to Combining stcurve graphs from different stcox analyses
Post a Comment