Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Help with survival analysis


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Help with survival analysis
Date   Mon, 26 Sep 2005 20:34:32 +0100

This sounds like a pure graph issue, and 
nothing to do with survival as such. 

Try 

... xlabel(0 "12" 1 "13" 2 "14" ... 12 "24") 

where the task of filling in the dots is 
left to you.

Nick 
[email protected] 

Joshua P. Mersky
 
> I am currently using survival analysis for a paper that examines
> associations between various predictors and the timing of 
> first birth in
> our sample.  I have completed all of my analyses, but I am having
> difficulty in getting my graphical output to look exactly the way I
> want.  I have generated survival curves for two groups that I wish to
> compare, but I cannot figure out how to configure the X-axis to my
> preferred specifications. Specifically, survival time in my 
> analysis ranges
> from 0-12, representing the number of years covered in the 
> analysis (ages
> 12-24).  I would like to have the ticks on the X-axis range 
> from 12 to 24,
> but the default mode on Stata tells it to range from 0 to 12. 
>  I have tried
> numerous solutions to no avail.  I am assuming that I can 
> avoid recoding my
> data and that there is a syntax command that will enable me 
> to label the
> ticks on the X-axis to range from 12-24. Can anyone provide 
> me with the
> proper command?

*
*   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