2
$\begingroup$

I have a large data set where some observation-periods are right censored (no event observed), others are interval censored (event observed but timing is uncertain), and some events fall into the observation-period.

Specifically:

  • we have individuals with year of birth between 2000 and 2018
  • each individual can have at most one event. There is only one type of event.
  • we know the timing of events that occurred in the period 2009-2018
  • events that occurred before the year 2009 are all registered in 2008. For individuals with birth year before 2009 who also had and event before the year 2009, we therefore only know that an event happened between the year of birth and 2008. (interval censoring)
  • we have no knowledge about events that occurred after 2018 (right censoring)

My understanding is that this data can be described as interval-censored data.

Another important characteristic of the data is that observations are clustered: Events are observed in strata (children in the same family), and the goal is to estimate the effect of within-strata variation of an exposure on occurrence of events with a fixed-effects model. To implement a fixed-effects cox model I need to use stratified baseline hazards.

The challenge is that I would like to do calculate a semi-parametric Cox proportional hazards regression (e.g. coxph from the survival package) with stratified baseline hazards, but AFAIK coxph does not work with survival objects that describe interval censored data. (I could use parametric models implemented in the survreg function, but I'd like to try the cox model first).

I'd be glad about any pointer to packages that allow to estimate cox models with interval censored data while also estimating strata-specific baseline hazards and robust standard errors in R. (As far as I can this is possible in the newest Stata 17).

PS: There is the icenReg package which supports cox regressions for interval-censored data, but I could not find information about stratification and robust standard errors in the package documentation. I therefor assume that this package cannot deal with my data.

$\endgroup$
4
  • $\begingroup$ Could you please say more about the nature of your "observation-periods" and how they correspond to your time = 0 reference for the survival model? From your description, I'm not quite sure that you actually have interval-censored data. Please provide that information by editing the question, as comments are easy to overlook and can be lost. Note that questions specific to a software package are generally off-topic on this site. You might try a simple test Cox model with strata in icenReg and examine its ir_clustBoot() function to see if it meets your needs. $\endgroup$
    – EdM
    Commented Aug 20, 2021 at 15:40
  • $\begingroup$ Thanks @EdM. I've update the question. $\endgroup$ Commented Aug 22, 2021 at 13:32
  • $\begingroup$ Is each individual limited to at most one event, or can the same individual have more than one event? Is there only one type of event, or are there multiple types, potentially competing? What’s the nature of the clustering? $\endgroup$
    – EdM
    Commented Aug 23, 2021 at 3:22
  • $\begingroup$ @EdM: I've added this information. $\endgroup$ Commented Aug 23, 2021 at 5:41

1 Answer 1

0
$\begingroup$

It seems that time = 0 for each individual is the birth date, so that the event time is age at the event. You don't seem to have time-varying covariates. With at most 1 event per individual, you don't need to take repeated events into account, although you do need to take correlations among members of the same family into account. In those respects, this is a straightforward survival model.

Left censoring

The practical problem with a Cox model here is that the times to events prior to 2009 are left censored. It's probably best to call them "left censored," even though left censoring is a limiting case of interval censoring with a lower limit of $t=-\infty$. I think that the term "interval censored" more typically is used in situations where individuals are followed up at intervals (e.g., regular visits after cancer treatment) and the event time is known to be at some time between 2 follow-up visits. For a standard Cox model based on risk sets at event times, you don't know which risk sets should include the left-censored cases so you need another approach to proportional-hazards modeling.

Family clusters

In terms of the clustering, you say:

Events are observed in strata (children in the same family), and the goal is to estimate the effect of within-strata variation of an exposure on occurrence of events with a fixed-effects model. To implement a fixed-effects cox model I need to use stratified baseline hazards.

There's a big practical problem in stratifying with separate baselines for each family. That will provide only a few cases within each stratum, leading to difficulty in identifying family-specific baseline hazards and a big loss of power overall.

You might be better off with an unstratified model, using some other way to take within-family correlations into account. Standard approaches are to estimate robust standard errors around the coefficient point estimates (cluster() term in the survival package) or to include a frailty/random-effect term in the model for families.

Parametric versus semi-parametric models

Left-censored data are reasonably easy to handle with parametric models, as the contribution of a case left-censored at time $t_c$ to the likelihood is simply the cumulative distribution through $t_c$, $F(t_c) = 1 - S(t_c)$, the complement of the survival function through that time. With a semi-parametric model and left/interval censoring, you instead need to estimate a baseline hazard (via the Turnbull extension to Kaplan-Meier curves for interval-censored data) jointly with the regression coefficients. That computationally intensive task furthermore requires bootstrapping to get confidence intervals on the coefficient estimates. See the icenReg() documentation.

Although I haven't tried this myself, the icenReg package seems capable of handling a semi-parametric proportional-hazards model along with clustering to account for within-family correlations. You would use id values to represent families rather than individuals. The package has an ir_clustBoot() function that seems to do the bootstrapping equivalent of the cluster() adjustment in survival package models, evidently with cluster-based bootstrapping instead of the default case-based bootstrapping. To test that, you could try a small test data set with only right censoring and compare the results with icenReg functions against what you get with the survival package and cluster() terms.

It might be simplest to use the standard survreg() function in the survival package to try parametric models. Those models directly handle clustered data with a "cluster" argument provided to the function. Although survreg() also will accept a frailty term instead, the main documentation (Section 5.5.3) indicates that frailty terms might not behave properly outside of the Cox regression context.

$\endgroup$
6
  • $\begingroup$ Thanks for the detailed response! I’ve tagged it as a solution, even if I understand some things differently. I focused on the stratified semiparametric Cox regression as an alternative to fixed effects (OLS) regression for time to event data. (e.g., pubmed.ncbi.nlm.nih.gov/31651661) A stratified semiparametric Cox model will not lead to loss of power, because it relies on a partial likelihood & no baseline hazards are estimated. I think that a parametric model is not an option for my case. As you wrote, few cases per stratum make the estimation of baseline hazards hard. $\endgroup$ Commented Aug 25, 2021 at 13:05
  • $\begingroup$ Looks like I have to choose between using Stata, which apparently recently added support for left/interval censored data, coding something up myself, or restrict myself to the more recent birthyears (which is not too bad because I know from domain knowledge that there are also clear cohort effects.) $\endgroup$ Commented Aug 25, 2021 at 13:08
  • $\begingroup$ Therneau and Grambsch discuss the relationship between number of strata and power on page 68. In their example, a Cox model based on 200 events divided into 50 strata only has half the power of an unstratified Cox model based on 200 events. The low number of events per stratum increases the variance in the coefficient point estimates and thus decreases the power. I suspect that even with the Stata implementation of interval censoring you will have problems stratifying by family, given the small number of events that can occur per family. $\endgroup$
    – EdM
    Commented Aug 25, 2021 at 13:40
  • $\begingroup$ Unfortunately I don't have access to the book, which I'd like to read to understand better. On the positive(?) side, with 20000 cases in 45000 individuals in 20000 strata the power problem might be solvable. [It is my understanding that only families with at least one event will contribute to the likelihood, the data set has many more families, but those don't have events. I am aware that this limits the generalisability of any result ...]. $\endgroup$ Commented Aug 25, 2021 at 14:47
  • $\begingroup$ Precisely because "only families with at least one event will contribute to the likelihood," your design poses the same type of problem as restricting survival analysis to individuals with events. It's not just a problem of "generalizability": it's a problem of potentially substantial bias. I most strongly recommend against that approach, and suggest that you consult with a local statistician with experience in survival analysis before you proceed. $\endgroup$
    – EdM
    Commented Aug 25, 2021 at 16:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.