Dear statalist,
I have a set of firms (symbol is used to identify firms) with year and delisting year. My sample period is 2009-2019, I want to drop observations in a year if the delisting year is earlier than or equal to the current year. For example, now is 2010, firm A is delisted in 2004, so by the end of 2010 it doesn't exist anymore, this observation needs to be dropped. If now is 2010, firm B is delisted during 2010, by the end of 2010 this firm also doesn't exist, so need to drop this observation. If now is 2010, and firm C is delisted in 2015, the firm still exists in 2010, so I should keep it. How can I achieve this? Please kindly give me some advice. Thanks a lot!
Related Posts with drop observations if delisting year is earlier than or equal to the current year
Econometric QueryI want to estimate the effect of adoption of a policy (POL1) by firms on their Value (Y). The adopti…
Keeping observations within a daterange of a focal observation of interestDear all, I'm trying to keep observations that satisfy a relatively simple condition, but am unable…
error using 'xsmle' : "initial values not feasible r(1400)"Hello, I am studying a spatial dimension of the regional real estate prices. I use panel data (Data…
lclogit inquiryHi everyone, I'm new to Stata. I'm trying to classify individuals from which I have data in a series…
Diff in Diff estimationDear All, I would like to conduct a diff in diff estimation (with two way fixed effects) on a panel…
Subscribe to:
Post Comments (Atom)
0 Response to drop observations if delisting year is earlier than or equal to the current year
Post a Comment