I want to analyze my data with the interval-censored cox regression of the icenReg package. I have 5 time-points (1,2,3,4,5). Events can only happen once. Each person starts with baseline (T1). People were asked whether the event happend since the last interview. Thus there are 4 intervals (1-2, 2-3, 3-4, 4-5) in which the event can occurr.
My data looks like this:
ID1: the event happened between timepoint 2 and 3
ID2: no event happened throughout the study period (baseline T1 until T5)
ID3: the event happend between timepoint 1 and 2
ID4: the event happened between timepoint 3 and 4
ID5: no event happend, but the person dropped out of the study before end of its study period (i.e. T3 instead of T5)
In icenReg, data must provided in the following format:
fit_ph <- ic_sp(cbind(left, right) ~ covariate1, model = 'ph', bs_samples = numberofbootstrapsamples, data = data)
However, I'm unsure how to code my data correspondingly. In the case of no event, I would code the left side of the interval as T1 (baseline) and the right side as the time of drop-out or study completion. In the case of an event, I would code the left side of the interval as the assessment before the event and the right side of the interval as the assessment after the event.
This would look like this:
ID1: left 2, right 3
ID2: left 1, right 5
ID3: left 1, right 2
ID4: left 3, right 4
ID5: left 1, right 3
However, I'm unsure whether this is the correct approach. I am especially concerned regarding whether it is correct to represent 1) the right side of the interval in the case of no event with the corresponding time of drop-out or study completion (instead of Inf), because without an event indicator this somehow indicates an event in this period and 2) the left side of the interval in the case of an event as the assessment before the event (instead of the baseline assessment T1).
The topic was already similarly discussed in this (Why does icenReg or survival's "interval2" not accept event indicator?) post, but this question is somewhat beyond this discussion.