| |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: stsum, stdes... median age
Pascal Sebille wrote:
I have a question about the 50th percentiles of survival
time with stsum, stdes...
I want to estimate median age with 2 decimales; ex: 20,32.
But with stsum, stdes... we have just whole age; ex: 20.
------------------------------------------------------
This occurs when the study time is expressed as integers.
The median time tends to be an actually measured time.
Try to run these commands and see what happens.
sysuse cancer
stset studytime , failure(died==1)
stsum
replace studytime=studytime+uniform()
stset studytime , failure(died==1)
stsum
Hope this explains.
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/