Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65099

Survival analysis - single record multiple failure modes

$
0
0
Dear all,

I am planning a survival analysis on a single-record multiple failure dataset. Each subject has one entry with multiple independent variables as well as three different potential failure events. Only one of the events is terminal (fail3 - death) but the other two can occur independently and in any order (see below). Many subject may have had none or more of the three events up to a censoring time (checktime).
I would like to consider all the events in a multiple-failure analysis rather than only the first event. I am not entirely clear on how to stset the dataset - recommendations would be greatly appreciated.
Many thanks,
Nikos

Example table:
ID - subject ID
IV1/2 independent variables
Fail1/2/3 - three different failure modes and corresponding times (where appropriate).
checktime - last time info is available on subject outcome
All times are already in days from time of entry with no left-censoring
ID IV1 IV2 Fail1 Fail1time Fail2 Fail2time Fail3 Fail3time Checktime
1 33 32 0 . 1 15 0 . 1125
2 22 43 0 . 0 . 0 . 800
3 14 23 1 34 0 . 1 155 155
4 55 34 0 . 1 140 0 . 998
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte(id iv1 iv2 fail1 fail1time fail2) int fail2time byte fail3 int(fail3time checktime)
1 33 32 0  . 1  15 0   . 1125
2 22 43 0  . 0   . 0   .  800
3 14 23 1 34 0   . 1 155  155
4 55 34 0  . 1 140 0   .  998
end

Viewing all articles
Browse latest Browse all 65099

Trending Articles