Dear members,
I am running a discrete-time survival analysis on an unbalanced panel data by using xtcloglog command in Stata.
xtcloglog dv iv cv i.industry_id, cluster(firm_id)
The final step prior to estimation is to choose a functional form for the baseline hazard function. I used a non-parametric baseline for which I created dummy variables, one for each spell year at risk.
ta j, ge(d)
The problem is the origin year for the firms in my data is 1980 but there are firms with a late entry regarding the origin because, for example, the firm starts working from 2002. so in this case when I create dummy based on j, the value of d1, for example, is 1 for the first year at risk of all these firms (so for one firm is 1980 for another is 2002) which seems not correct. what should I do with this late entry?
I am following Professor Stephen P. Jenkins online material and he mentioned: "Remember that we do not have to stset the data for estimation because we do not use the st commands – they are for the continuous-time case." So because of my discrete-time, I can't use stset.
Thanks for helping me,
Related Posts with discrete-time survival analysis xtcloglog late entry
mkspline / mkspline2Hi Statalist, I just recently started working with restricted cubic splines using the mkspline/mksp…
Estiamtion of a Confidence interval for a proportion in non-independent dataDear Statlist, I am analysing a dataset in which researchers recorded whether or not a complication…
Hot deck to impute wind serieshello with everyone I am a new user in SATA, I investigated a bit about the imputation of data and I…
How do you analyze an unbalanced panel in stata?Array Hello, I would like to ask a question in stata. I want to do a panel regression. (OLS, RE, …
ID/ Index creationDear all, I would like to create country specific IDs. I have different ISOs for which I would like…
Subscribe to:
Post Comments (Atom)
0 Response to discrete-time survival analysis xtcloglog late entry
Post a Comment