Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nicolás Rojas <nicolas.srojas@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: graphing Kaplan Meier confidence interval band |
Date | Thu, 24 Feb 2011 11:47:35 -0300 |
Dear STATA users, I am estimating KM surviving probabilities of staying in teaching. My data comes from a multi stage sample so I need to use weights. KM estimation with confidence intervals is easy with sts commands. sts timevar, failure(event) sts graph, ci Very nice confidence intervals are plotted with ci option. However the command does not support weighting. It is not possible to do: sts timevar [pw=weights], failure(event) sts graph, ci Does anybody know how to do that manually??? Plotting confidence intervals alone is easy if you use sts list. Howoever, I cannot graph the colored bands. Thank you, best regards, Nico Rojas Research Assistant PUC Chile * * 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/