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]
st: Multiple graph with stcompet
From 
 
gambaaz garnaal <[email protected]> 
To 
 
[email protected] 
Subject 
 
st: Multiple graph with stcompet 
Date 
 
Fri, 21 Jan 2011 04:47:46 -0800 (PST) 
Dear Statalister,
I'm trying to use Stcompet with multiple events (0, 1, 2, 3). Now I want graph functions for each event.
I used the following code, following 'help stcompet':
.stset time, f(event==0)
.stcompet CumInc = ci, compet1(1) compet2(2) compet3(3)
.gen CumIn1 = CumInc if even ==1
.gen CumIn2 = CumInc if even ==2
.gen CumIn3 = CumInc if even ==3
Now the next step... how can I graph functions (cumulative incidence) relating to each event in just one plot. Hope someone can help me with the script.
Thank you in advance.
Olivier
      
*
*   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/