Statalist


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

st: stset and stsum problem


From   [email protected]
To   [email protected]
Subject   st: stset and stsum problem
Date   Sat, 15 Mar 2008 19:44:02 +0100

Dear statlist,
I have tried to set my data for a survival analysis, but I have a problem when use stset and put all the observations censored.
My dataset is this:
id firstyearentry yearentry yearexit duration canvi
1 3/2001 3/2001 3/2002 12 0
1 3/2001 4/2002 9/2002 17 1
2 8/2002 8/2002 11/2002 3 0
2 8/2002 12/2002 5/2003 9 0
3 .....
...

The command that I use is:
stset dur, f(canvi==1) id(id)
If I put all the observation censored and not with stsum I have this:
stsum;

failure _d: canvi
analysis time _t: dur
id: id

| incidence no. of |------ Survival time -----|
| time at risk rate subjects 25% 50% 75%
---------+---------------------------------------------------------------------
total | 10661543 .0002694 34301 1025 . .


If I take only the observation with failure ==1 I have this:

failure _d: canvi
analysis time _t: dur
id: id

| incidence no. of |------ Survival time -----|
| time at risk rate subjects 25% 50% 75%
---------+---------------------------------------------------------------------
total | 960671 .0030687 2951 131 283 469

Someone can help me to understand where is the error?
Thanks in advance.
best,
catia



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