Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Werner Wackernagel <werner.wackernagel@medunigraz.at> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: mark censored observations when creating survival curve with 'twoway' |
Date | Tue, 16 Jul 2013 08:23:58 +0200 |
Dear Stata-List, in sts graph there is an option censored() to mark censored observations. I' struggling to create such marks manually when creating the graph via "twoway". e.g. twoway lineMain0 Main1 _t if _t<70, sort c(J J) scheme(lean1) xti("Months") /// yti("Whatever") yla(0(.1).2, glp(shortdash)) xla(0(6)69) lpattern(solid dash) legend(pos(11) ring(0) label(1 "TNM1-2") label(2 "TNM3-4")) ti("") name(size) Does anybody know how to manually create tick marks for censored observations? Is 'sts graph' an .ado file in the stata program folder, so that I could look into the code to find out how sts graph is achieving this? Alternative: Is there a way to use sts graph after stcompet / on raw data imported from R? Thanks a lot, Werner Wackernagel * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/