[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: sts graph: truncating reporting for -atrisk- option

From   Michael McCulloch <>
To   Statalist <>
Subject   st: sts graph: truncating reporting for -atrisk- option
Date   Tue, 9 Sep 2008 13:52:30 -0700

I've created a KM plot comparing two troups, and would like to show the number at risk, but the numbers overlap on the left edge of the graph. Is it possible to truncate reporting for the -atrisk- option, so the numbers would start showing only later, when the plot lines have diverged?

For example, in this graph, report -atrisk- only after t=5:
sysuse cancer.dta, clear
stset studytime
sts graph, by(drug) atrisk


Best wishes,
Michael McCulloch

Pine Street Foundation
124 Pine St., San Anselmo, CA 94960-2674
Tel: (415) 407-1357
Fax: (415) 485-1065
* For searches and help try:

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