Hi all,
I'm using Stata 17 on MacBook.
For my Master Thesis I have a panel data set where I have accounting data for the years 2016-2020 for US firms.
However, after dropping missing values, some firms end up not having data for the years 2016-2020 but for instance only for the years 2019 and 2020.
Below is a screenshot of a part of my data where a firm that only has data for the years 2019 and 2020 is highlighted. How do I drop the firms that do not have data for all the years (2016-2020) that I need?

Thanks in advance!
I'm using Stata 17 on MacBook.
For my Master Thesis I have a panel data set where I have accounting data for the years 2016-2020 for US firms.
However, after dropping missing values, some firms end up not having data for the years 2016-2020 but for instance only for the years 2019 and 2020.
Below is a screenshot of a part of my data where a firm that only has data for the years 2019 and 2020 is highlighted. How do I drop the firms that do not have data for all the years (2016-2020) that I need?
Thanks in advance!
Comment