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
Loop through two lists to create new variablesHi Statalist. I would like to create ratios of the value of different asset types for one group as …
reshaping wide to long dataHello, I have trouble reshaping my panel data and need some help. I work with quarterly data from 19…
Pooled OLS with Clustered Robust S.E vs Random Effects (Robust)?I am working on a project with a time invariant independent variable (childhood nutrition at age 5).…
Creating an indicator variable in Stata long formatHi all, I'm having difficulty with creating indicator variables in a dataset in long format in stat…
Regressing the t-1 values from a panelI have a panel dataset with multiple observations where I would like to regress a variable Y on the …
Subscribe to:
Post Comments (Atom)
0 Response to ID variable for stsplit in multiple failure time data
Post a Comment