Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Making it so that stset works when birth and death happen in the same year

    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!

  • #2
    If you only have year of birth and year of death, you could assume that where they are the same the average survival was six months and credit each of the affected firms equally.

    Comment

    Working...
    X