I'm starting to do survival analysis and I am a basic problem.
I have this data structure (one observation per row):
. list failure datebegin faildate timey
+-----------------------------------------+
| failure datebegin faildate timey |
|-----------------------------------------|
1. | 0 20jun1983 . . |
2. | 1 10jun1992 04feb2007 5352 |
3. | 1 30may1993 . . |
4. | 1 12oct1993 05may2007 4953 |
5. | 0 14dec1993 . . |
|-----------------------------------------|
Failure is the outcome (death); faildate is the date of death; and timey is the difference between beginning of treatment and death. I don't have faildate for who didn't die.
I want perform a survival analysis considering failure 0 and 1. But when I declare dataset to be survival-time data (stset), I just can analyse who died.
How I can consider who lived (faliure "0")?
Thank you.
I have this data structure (one observation per row):
. list failure datebegin faildate timey
+-----------------------------------------+
| failure datebegin faildate timey |
|-----------------------------------------|
1. | 0 20jun1983 . . |
2. | 1 10jun1992 04feb2007 5352 |
3. | 1 30may1993 . . |
4. | 1 12oct1993 05may2007 4953 |
5. | 0 14dec1993 . . |
|-----------------------------------------|
Failure is the outcome (death); faildate is the date of death; and timey is the difference between beginning of treatment and death. I don't have faildate for who didn't die.
I want perform a survival analysis considering failure 0 and 1. But when I declare dataset to be survival-time data (stset), I just can analyse who died.
How I can consider who lived (faliure "0")?
Thank you.
Comment