Goodmorning,
For my thesis it is very important to remove all firms in my compustat database for which the fiscal year-end changes(to ensure the comparability of different years)
I have no idea which command to use to reach this. Can someone help me with this?
For example:
GVKEY: 00104 Datadate: 31may2009 Fyear: 2008
GVKEY 00104 Datadate: 31may 2010 Fyear: 2009
GVKEY 00104 Datadte: 31June 2011: Fyear: 2010
When this is the case the firm with GVKEY 00104 must be removed from my database, because of the change in Datadate.
I hope someone can help me!
Kind regards,
Sjoerd
Related Posts with IMPORTANT QUESTION: Remove firms if fiscal year-end changes
How to replace any variable's value if meeting certain conditionDear Stata users, In the following data, I want to replace variables d2a1 d2a2 d2a3 to missing 'cau…
How to re-arrange my data?Dear Statalists, I'd like to rearrange my data in order to analyze it. Part of my dataset is: Co…
Traj Command ErrorI am using MP 14 ver. and was able to use traj. command until a couple of months ago. Now I see the …
Bar chart when one category is extremely frequentThis is a question on data visualization in Stata, but also relevant for other software. I have a da…
Why robust command in panel regression?!!Dear I want to know when and why I can use robust command in Stata for panel regression model?! …
Subscribe to:
Post Comments (Atom)
0 Response to IMPORTANT QUESTION: Remove firms if fiscal year-end changes
Post a Comment