Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: the use of stcompet


From   natalie chan <[email protected]>
To   [email protected]
Subject   st: the use of stcompet
Date   Sun, 5 Apr 2009 02:18:52 +0100

Dear Statalister,

I am trying to use Stcompet to determine the cause specific mortality
rate on a dataset with about 3500 subjects, 30000 observations and 3
possible causes.

I use stset first:

stset time1, id(id) time0(time0) failure(path==1)

the results are as follows:

 id:  id
     failure event:  path == 1
obs. time interval:  (time0, time1]
 exit on or before:  failure

------------------------------------------------------------------------------
    30367  total obs.
     2671  obs. begin on or after (first) failure
------------------------------------------------------------------------------
    27696  obs. remaining, representing
     3521  subjects
      563  failures in single failure-per-subject data
    27696  total analysis time at risk, at risk from t =         0
                             earliest observed entry t =1
                                  last observed exit t =15


then I use stcompet:

stcompet test1=ci test2=se, compet1(2) compet2(3)

In the new variables generated, there are numbers when the failure
variable (=1, 2 or 3), but in other rows, the value is missing.

I have searched Statalist Archive and found that someone had the same
problem but I did not find the answer. I would be grateful if anyone
could help me on this.

Many thanks.

Natalie
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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