Hi Statalist,
I have a database of a lot of companies for 7 years: 01-2013 to 01-2019. However, in order to calculate certain variables, I first need to be sure the data of every company starts in 01-2013. And the data for some companies start in 2015 for example. Could you please tell me the code to drop all companies that do not start on 01-2013?
Sidenote: I know deleting all companies that don't make it till the end would cause survivorship-bias, but deleting all funds of which there is no data at the beginning of the period will not do any harm right?
Thank you in advance.
Best regards,
Tom Reinders
Related Posts with Dropping all companies with no observation at the start of the time period
xtmelogit CodeI am using stata v 11, and trying this code , xtmelogit N1 i.HW3 i.m18n i.Bm11 i.V212 i.Vm445 i.Mn14…
Restrictions on Structural VAR Impulse Response FunctionsDear all, I would like to impose some restrictions on an estimated SVAR before running impulse resp…
Multi level modelling cross level analysisI want to examine the effect of educational attainment(xvar) on prejudice(yvar) (both 1. level varia…
Unifiying databasesDear users of StataCorp forum, As follows I describe my puzzle: Dataset 1 variables: date cusip …
Converting string to date: missing values generatedNew to STATA and have searched responses to others with this issue but can't resolve my own instance…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping all companies with no observation at the start of the time period
Post a Comment