Hi I'm trying to define a survival time variable which is time to death, loss of follow up or time to infection(whichever comes first)
How do I come up with a command to define this variable?
Most tutorials have shown how to define if there's one event of interest e.g.
Would appreciate any advice thanks
How do I come up with a command to define this variable?
Most tutorials have shown how to define if there's one event of interest e.g.
Code:
gen survivaltime=(date of death)-(date of start of follow up)
Comment