Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: stcompet and cumulative incidence at a specific point in time


From   Enzo Coviello <enzo.coviello@tin.it>
To   statalist@hsphsun2.harvard.edu
Subject   st: stcompet and cumulative incidence at a specific point in time
Date   Sun, 16 Jun 2013 08:14:29 +0200

Hi All,

Is there a Stata command that can be used to list (at specific time points e.g. -sts list, at (0 (1) 5)-) the cumulative incidence function with confidence intervals from a competing risk analysis (after the ?stcompet- command)?


As far as I know there is not a command.
The following code should approximately obtain what you need supposing that the -ci- is the name of the variable containing the cumulative incidence:

forval i = 1(1)5 {
  qui su _t if _t<=`i'
  local tobs = `r(max)'
  qui su ci if _t<=`i'
  local ciat = `r(max)'
  if `i'==10 di _col(5) "at" _col(18) "Obs Time" _col(33) "Cum Inc"
  di _col(5) `i' _col(20) `tobs' _col(35) `ciat'
  }

Best

Enzo

--
Enzo Coviello
Epidemiology Unit - Cancer Registry ASL BT
Piazza Umberto 1
76121 BARLETTA (BT)
Italy
mobile +39 347 5016016
tel +39 0883 577329
fax +39 0883 577288
Home +39 0883 695055


--
Enzo Coviello
Epidemiology Unit - Cancer Registry ASL BT
Piazza Umberto 1
76121 BARLETTA (BT)
Italy
mobile +39 347 5016016
tel +39 0883 577329
fax +39 0883 577288
Home +39 0883 695055
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index