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
listfirstThanks as always to Kit Baum, a small utility listfirst has been posted on SSC. listfirst lists the…
Omitted- predicts failure or successlogistic Out Exp var_n var_m var_k var_k var_n != 1 predicts success perfectly var_n dropped and 1 …
Commandes pour mesurer la vulnérabilité à la pauvretéJe travaille actuellement sur le thème: vulnérabilité des ménages à pauvreté. Je dispose des données…
Using mi data in two-stage IPD-MAHi all, Does anyone have any experience using multiple imputation with a two-stage IPD-MA model? I…
Deleting a file if file size exceeds a threshold sizeI want to delete a dta file if its size is less than x kilobytes. I use the code below. The dta file…
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