Statalist


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

st: RE: stset and stsum problem


From   "Kieran McCaul" <[email protected]>
To   <[email protected]>
Subject   st: RE: stset and stsum problem
Date   Mon, 17 Mar 2008 08:49:37 +0900

What exactly is the problem?

______________________________________________
Kieran McCaul MPH PhD
WA Centre for Health & Ageing (M573)
University of Western Australia
Level 6, Ainslie House
48 Murray St
Perth 6000
Phone: (08) 9224-2140
Phone: -61-8-9224-2140
email: [email protected]
http://myprofile.cos.com/mccaul 
_______________________________________________

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Sunday, 16 March 2008 3:44 AM
To: [email protected]
Subject: st: stset and stsum problem

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/



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