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
How to rank firms into decilesHello, I try to measure investment efficiency in this paper "How does financial reporting quality r…
Regular expression in StataDear Stata users, Regular expression is used frequently nowadays. Stata's help file on regular expr…
Can we do a LPA(Latent Profile Analysis) with Stata?Hi all. It could be a stupid question but I am thirsty for the answer. Do we need Mplus for conducti…
Destringed variables representing subsectors (Variable representing whole sector is D). Cannot plot even I converted to numericDear all, I destringed (converted from string to numeric) a set of variables that described subsect…
2sls regression with interaction between endogenous and exogenous variablesI am having an endogenous variable X1 and an exogenous variable X2 and instruments Z1 and Z2 for my …
Subscribe to:
Post Comments (Atom)
0 Response to discrete-time survival analysis xtcloglog late entry
Post a Comment