I'm working on a project in which I need to perform survival analysis on a sample of firms.
When I stset my sample, everything works out perfectly, but there is an issue, as STATA doesn't take into account the firms that died in the same year in which they were born.
The code I am using is the following:
stset age, id(id) failure(death==1)
Where age is defined by the following code: gen age = year-year_birth
The firms that have year of birth equal to the year of their death are to be considered in my study, but STATA sets their _st as 0 by default.
What can I do in order to solve this issue? Appreciate any help!
Related Posts with Making it so that stset works when birth and death happen in the same year
Generate time value with year and quarter and xtsetI have 3 variable variable year with value from 2000-2010 variable quarter with value from 1-4 varia…
Question on AIC (and Log-likelihood)Hello everybody. I would have two quick theoretical questions on the AIC, which raised when perform…
Too large R SquaredI regressed the loan rate on firm variables and loan characteristics and yield a way too high r squa…
What pseudo R squared and chi2 obtained with -pstest- mean?Dear All, I have run -pstest- after matching. I have explained the standardised bias and the mean b…
elasticity calculation with a factor variable regressionhi dear all statalisters, I now face a problem in getting the elasticity after running a logit model…
Subscribe to:
Post Comments (Atom)
0 Response to Making it so that stset works when birth and death happen in the same year
Post a Comment