Simulated 3-state dataset in oncology with three health states (Stable, Progression, and Death) and three possible transitions (Stable -> Progression, Stable -> Death, and Progression -> Death).
onc3A data.table with the following columns:
Health state making a transition from.
Health state making a transition to.
Standard of care (SOC), new treatment 1 (New 1), or new treatment 2 (New 2).
1 if a patient is female; 0 if male.
Patient age (in years).
Patient identification number.
Starting time.
Stopping time.
Status indicator: 1=transition, 0=censored.
Integer denoting transition: 1 = Stable -> Progression, 2 = Stable -> Death, 3 = Progression -> Death.
Strategy identification number.
Elapsed years between time_start and time_stop.
head(onc3)
#>           from          to strategy_name female      age patient_id time_start
#>         <char>      <char>        <fctr>  <int>    <num>      <int>      <num>
#> 1:      Stable Progression         New 2      0 59.85813          1   0.000000
#> 2:      Stable       Death         New 2      0 59.85813          1   0.000000
#> 3: Progression       Death         New 2      0 59.85813          1   2.420226
#> 4:      Stable Progression         New 2      0 62.57282          2   0.000000
#> 5:      Stable       Death         New 2      0 62.57282          2   0.000000
#> 6:      Stable Progression           SOC      1 61.44379          3   0.000000
#>    time_stop status transition_id strategy_id      time
#>        <num>  <num>         <num>       <int>     <num>
#> 1:  2.420226      1             1           3  2.420226
#> 2:  2.420226      0             2           3  2.420226
#> 3: 14.620258      1             3           3 12.200032
#> 4:  7.497464      0             1           3  7.497464
#> 5:  7.497464      0             2           3  7.497464
#> 6:  2.365867      0             1           1  2.365867