Statalist


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

st: Multiple Kaplan Meier graphs for PFS and survival


From   moleps islon <[email protected]>
To   [email protected]
Subject   st: Multiple Kaplan Meier graphs for PFS and survival
Date   Tue, 27 Jan 2009 11:28:42 +0100

Dear statalisters,
I need to prepare a combined Kaplan Meier graph incorporating both
progression-free survival and overall survival in addition to
risktables. Since the event is different I rely on using stset for
each instance and then sts graph, however however graph combine
refuses to display the two graphs with joint axes (I'm only able to
get two graphs side by side). Is there a work around for this? Also
the risktables would be messed up I assume if I could make this
work-and it would be a definitive plus to present risktables for both
PFS and survival.


stset t, f(surv==1)
sts graph,risktable name(one)
stset t,f(pfs==1)
sts graph, risktable name(two)
graph combine one two

Any ideas?

Regards
Moleps
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index