Stata The Stata listserver
[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?


From   "Cheng Shao" <[email protected]>
To   <[email protected]>
Subject   st: who knows how to draw a 95% CI band for survival curves?
Date   Tue, 21 Dec 2004 14:32:14 -0500

Hello,

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?

Thanks.
C.S


============= 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.

C.S.


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:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index