Statalist The Stata Listserver


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

st: RE: graph/figure to illustrate survival times


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: graph/figure to illustrate survival times
Date   Fri, 7 Jul 2006 17:23:50 +0100

You can simulate -msymbol(|)- by using -ms(none) mlab(pipe)- 
after 

. gen pipe = "|" 

There is a more detailed example fleshing out the principle 
in the help for -stripplot- which you may install from SSC. 

Given that, what you want looks straightforward. 

Nick 
[email protected] 

josemaria

>     Is there a way to use some graph command to make a figure 
> showing the 
> times of some individuals in a survival study, lines 
> representing the time 
> span, with vertical bar (|) indicating the starting time and 
> X indicating 
> time of failure and  O the time of censoring?
>     for example of a censored individual, _twoway rcapsym if id==1, 
> horizontal  msymbol( | Oh)_ would do if the condition 
> msymbol( | Oh)  and 
> msymbol( | X) were allowed.
>     If the mail does not distort, something like
> 
>     |
> 2  |      |--------------------------------------X
>     |
> 1  |             |-----------------------O
>     |________________________________
>     0    1    2    3   4    5    6    7    8    9    10
 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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