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
Cross-classified multi-level structure with longitudinal dataHi everyone, I'm using Stata version 15.1. I am trying to get the right syntax for a model. I tried…
Kaplan-Meier survival: reporting the number of patients at riskThe sts graph command comes with a handy risktable option that reports the number of patients at ris…
value labelsHello everyone! Is there a way to merge value labels from a cvs file into a dataset in stata? the r…
adding regional fixed effect to system GMMHello, I'm estimating a dynamic panel model using GMM system xtabond2. I've a general question. I mi…
Generating multiple of the same report, with different resultsMy goal is to create several PDF reports using the putpdf function. With the data I have right now, …
Subscribe to:
Post Comments (Atom)
0 Response to ID variable for stsplit in multiple failure time data
Post a Comment