Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: st: 95% CI at one or two points in a Kaplan-Meier curve?


From   "Airey, David C" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   re: st: 95% CI at one or two points in a Kaplan-Meier curve?
Date   Sun, 7 Aug 2011 13:30:10 -0500

.

Maybe something like this:

clear
graph drop _all
webuse drug2b
sts graph, by(drug) ci name(rarea) legend(off)
sts list, by(drug) at(0(5)40)
sts graph, by(drug) legend(off) name(rcap_at) ///
	addplot((pci 0.1612 10 0.5828 10, lc(black)) ///
		(pci 0.6415 10 0.9398 10, lc(black)) ///
		(pci 0.2275 30 0.6641 30, lc(black)))

-Dave

David Airey said:
> 
> Use the recast option to ciopts:
> 
> webuse drug2b
> sts graph, by(drug) ci ciopts(recast(rcap))
> 
> -Dave

Thank you. That is what 99% of what I wanted, but can I limit the plotting of 95% CIs to arbitrary data points along the x axis? Say, for instance in your drug example using --webuse drug2b--, could I somehow only plot 95% CIs at times 10 and 30?

Many thanks again,

Phil
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index