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
overlapping labels on the same pointHi all, I saw many related problems to the following but, as far as I have understood, such issues …
Ommited because of collinearity even though 'collin' and 'vif' commands show no correlation.Dear all, I have a challenge that I cannot understand or deal with. When I run my regression I get a…
Reshape command with quarterly dataI would like to reshape my data from wide to long format. My headers are dates every quarter so 31-1…
Very large t-statisticsDear all, I am performing cluster robust WLS and fixed effects models on a relatively small dataset…
No observation error in areg using variables within a rangeHello there, have created three variables represing three classes (discrete) of travel times, naley…
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