Hi everyone,
I'm trying to estimate a proportional hazard model with a piecewise constant baseline hazard on unemployment-spell level data by using the stsplit command. Failure in this context means the transition from unemployment to employment. As I have multiple spells per individual in the dataset, I want to specify that my data is of multiple-failure type. Additionally, I need to specify that the "clock" resets every spell, i.e. I need the _t0 variable generated by stset to be 0 for each observation (i.e. each spell). (Meaning that, even for the second or third entry for each individual, the analysis time when the record begins is 0)
According to the spell-type "stset"-Guidebook (https://www.stata.com/support/faqs/s...ell-type-data/), this is only possible if I do not specify the ID() option when stsetting the data. However, stsplit does require an ID-variable.
Can someone help me with this issue?
Thanks a lot!
Valentin
Related Posts with ID variable for stsplit in multiple failure time data
difference of timeDear All, I was asked this question (here). The data set is Code: * Example generated by -dataex-. …
Very easy question but troubleing me...Hi guys, I am a new STATA user and I want to ask a very amateur question about date and formatting. …
How to remove observations according to conditions while not touch others?Hello, Below is part of my dataset. What i wanna do is that for same individual with outcome=1 onl…
Panel data survival modelHello everyone! I have a country code year panel data. I want to create a duration variable (dur_reg…
Need Help on STATA loopHello, Everyone, I want to assign individuals (id) into groups of five (group) in the following pat…
Subscribe to:
Post Comments (Atom)
0 Response to ID variable for stsplit in multiple failure time data
Post a Comment