Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cumulative Incidence Graph in the presence of competing risk

    Hi,

    I am trying graph a cumulative incidence curve for disease relapse in the presence of competing risk, and here are my codes and responses:

    . stset rfs, failure(relapse==1)

    failure event: relapse == 1
    obs. time interval: (0, rfs]
    exit on or before: failure

    ------------------------------------------------------------------------------
    57 total observations
    0 exclusions
    ------------------------------------------------------------------------------
    57 observations remaining, representing
    15 failures in single-record/single-failure data
    1,602 total analysis time at risk and under observation
    at risk from t = 0
    earliest observed entry t = 0
    last observed exit t = 115


    . stcurve cif=ci, compet1(2)

    last estimates not found
    r(301);

    What did I do wrong here?

    Thanks,
    Richard

  • #2
    From the help for stcurve:
    stcurve plots the survivor, hazard, or cumulative hazard function after stcox, streg, mestreg,
    or xtstreg. stcurve also plots the cumulative subhazard or cumulative incidence function (CIF) after stcrreg.
    In other words, you must run stcrreg first. Note that data listings, code, and, results should be shown between CODE delimiters, described in FAQ 12.
    Last edited by Steve Samuels; 07 May 2018, 17:55.
    Steve Samuels
    Statistical Consulting
    [email protected]

    Stata 14.2

    Comment


    • #3
      Thanks for the help

      Comment

      Working...
      X