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
Help with rounding off in STATAI am new to Stata and I need to create a three-way table. I was trying to export it using "asdoc tab…
Merge while keeping value labels in master and using dataset unchangedHello! I am trying to merge two datasets from a survey which contains household ((HH) level data wi…
Combining summary statistics and correlation matrixHi everyone, I need to create a table combining summary statistics and correlation matrix as a part …
Structural Equation Modelling (SEM) using STATAHi, I want to analyze my data using SEM in stata. This is my model: Array Health variable consist of…
Can you make ridgeline plots (aka joyplots) in Stata 16?Hi! I stumbled on this data visualization page https://www.data-to-viz.com/ and realized that ridge…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping all companies with no observation at the start of the time period
Post a Comment