Announcement

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

  • Survival analysis with competing risks: Is it possible to fit a Fine Gray model (stcrreg) with shared frailty or stratification?

    Dear STATA community

    I am looking to study the occurence of stroke in the presence of death as competing risk in a pooled patient cohort. One way to account for competing risks is Fine-Gray modelling, which is implemented in STATA with the stcrreg command.
    Since the patients in my pooled dataset originate from separate cohorts, i would like to somehow account for potential differences among the different cohorts in my model. In the case of Cox proportional hazards regression, one might introduce stratification to cohorts or shared frailty for cohort in the model to adress this. However, the stcrreg command does not seem to give the option to use strata or shared frailty.

    Hence my question: Is there a way to introduce strata or shared frailty to the Fine-Gray model, or some other way to account for potential differences among the different cohorts in the Fine-Gray model?

    Many thanks for any insight
    Alex

  • #2
    Originally posted by ALEXANDROS POLYMERIS View Post
    Dear STATA community

    I am looking to study the occurence of stroke in the presence of death as competing risk in a pooled patient cohort. One way to account for competing risks is Fine-Gray modelling, which is implemented in STATA with the stcrreg command.
    Since the patients in my pooled dataset originate from separate cohorts, i would like to somehow account for potential differences among the different cohorts in my model. In the case of Cox proportional hazards regression, one might introduce stratification to cohorts or shared frailty for cohort in the model to adress this. However, the stcrreg command does not seem to give the option to use strata or shared frailty.

    Hence my question: Is there a way to introduce strata or shared frailty to the Fine-Gray model, or some other way to account for potential differences among the different cohorts in the Fine-Gray model?

    Many thanks for any insight
    Alex
    Late reply, in case it helps others. One way to get a stratified Fine-Gray model in Stata is my command ghoshlin (disclosure: I am the author). It does not fit the model itself. It rebuilds the data with inverse-probability-of-censoring weights, so that subjects with a competing event stay in the risk set. For time to first event, stcox on the rebuilt data then gives the Fine-Gray model (Geskus 2011), and its results match stcrreg. For multiple-failure time to event data, stcox results match a Ghosh-Lin model (2002). Because it is stcox, strata() is available:

    Code:
    net from "https://szabobarnaki.github.io/ghoshlin/"
    • status: 1 = stroke, 2 = death (competing), 0 = censored stset time, id(id) failure(status==1 2) ghoshlin, failure("status==1") competing("status==2") keep(age sex cohort) maxevents(1) frame(fg, replace) frame fg: stcox age i.sex, strata(cohort) vce(cluster id)
    Each cohort then has its own baseline subdistribution hazard. If censoring differs between cohorts, you may also want cohort-specific censoring weights. To get them, run ghoshlin if cohort==k separately for each cohort, append the resulting datasets, and stset tstop [pw=weight_c], failure(event==1) enter(tstart) again before stcox.

    The standard errors treat the censoring weights as known. With only a few cohorts, I would prefer strata (or cohort as a fixed effect) over a shared frailty anyway, because the frailty variance would be poorly estimated.

    Comment


    • #3
      Adding to Barna's answer with another option. Disclosure: I wrote finegray, a community-contributed command that fits the Fine-Gray model directly.

      finegray fits the stratified Fine-Gray model of Zhou, Latouche, Rocha and Fine (2011) in one step, including the cohort-specific censoring weights Barna mentions, without running each cohort separately and appending:
      Code:
      ssc install finegray
      * status: 0 = censored, 1 = stroke, 2 = death
      stset time, failure(status) id(id)
      finegray age i.sex, compete(status) cause(1) bstrata(cohort) strata(cohort)
      bstrata(cohort) gives each cohort its own baseline subdistribution hazard with shared covariate effects, the analogue of stcox, strata(). strata(cohort) estimates the censoring distribution, used for the weights, within each cohort. With a few large cohorts, that combination is the estimator in Zhou et al. (2011). Be careful with the names: strata() on its own only stratifies the censoring weights.

      On Barna's point that the standard errors treat the censoring weights as known: that is also finegray's default, but the nuisance option adds the term for estimating them. In my simulations it changed the standard errors very little.

      Two restrictions: bstrata() is for right-censored data only and is refused with delayed entry (for example, age as the time scale), and cohort gets no coefficient or test.

      One caution: with only a few cohorts, avoid clustering on cohort (finegray, cluster(cohort) or stcrreg, vce(cluster cohort)). Cluster-robust standard errors need many clusters to be reliable; in the simulations of Zhou, Fine, Latouche and Labopin (2012) the test size was already slightly above nominal with 100 clusters and reached nominal at 250.

      On frailty, I agree with Barna that with few cohorts, strata or fixed effects (stcrreg ... i.cohort) are the better choice. Fine-Gray models with a random center effect have been proposed (Katsahian et al. 2006), but neither stcrreg nor finegray fits one. stcox, shared(cohort) on the cause-specific hazard of stroke is possible, but it answers a different question than a Fine-Gray model.

      Comment

      Working...
      X