Dave wrote:
I have run some cumulative risk estimates and produced some life tables,
using -stset- and -sts list-. I wanted to look at the period between
entry at risk and exit from risk for a cancer cohort where failure
(flagged by a variable: censvar) was developing a cancer.
I -stset- the data and calculated the interval between entry and exit in
years (generated variable: intvlexit). I then tabulated this variable
and found the maximum interval (entry to exit to be 48 years). When I
ran -sts list- on this data I set the time range from 0 - 65 as I don't
know in advance what the maximum interval is). I expected that, after
time value = 49, there would be 0 persons entering risk, but in the life
table all Time values from 49 to 65 have 1 record apparently "still at
risk".
--------------------------------------------------------------
Not your fault: -sts list- with the at() option displays the number at
risk prior to the preceding failure event. This somewhat surprising
behavior is known to StataCorp, and it is described in the manual, [ST]
sts list.
To get the number at risk right, you could use -ltable-.
Hope this helps
Svend
__________________________________________
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone: +45 8942 6090
Home: +45 8693 7796
Email: [email protected]
__________________________________________
*
* 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/