[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: who knows how to draw a 95% CI band for survival curves?
who knows how to draw a 95% CI band for survival curve? I checked the help for ltable, sts graph, and stcurv, but I still couldn't figure it out.
It seems ltable is the only one that provides 95%CI. But the problem is I cannot adjust for the covariates. And I found the option "overlay" doesn't work.
I don't know how to add 95% CI bands by sts graph or stcurv.
Is there any way to do so by Stata? Or by other software?
============= my previous email=================
Dear Stata users,
I am using a cox proportional hazard regression to estimate the probability of not having any ED visit within a 6 months follow-up in an asthma clinical trial. I want to graphically display the significance of difference between the two treatment groups.
failure = "having any asthma ED visit"
survival time (survtm) = "the period of not having any ED visit"
I have several covariates, x1 -- x8.
This is my STATA code:
.stset survtm, failure(edvisit=1)
.stcox x1 x2 x3 x4 x5 x6 x7 x8 treatment, basesurv(s) basehc(h)
.stcurv, survival at1(treatment=1) at2(treatment=2)
I was asked to add the 95% Confidence Bands to the survival curves of each of the treatment groups (Please see the attached STATA graph file).
How to do that? Anybody can help me? Thank you very much.
Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original message.
* For searches and help try: