Hi
I`m currently working on trimming a panel dataset, but my technical skills in STATA are somewhat limited. Anyone able to help?
The dataset consists of company id, year and industry codes (code) for six years. For some companies the industry code is either entirely missing or partially missing. I want to remove a company from the dataset entirely if there are no industry codes or if industry codes are not given for the entire time period in which a company is in the dataset.
In the example I have given, I would want to drop all observations for id 203, not only the one where the code is missing.
Thank you very much.
I`m currently working on trimming a panel dataset, but my technical skills in STATA are somewhat limited. Anyone able to help?
The dataset consists of company id, year and industry codes (code) for six years. For some companies the industry code is either entirely missing or partially missing. I want to remove a company from the dataset entirely if there are no industry codes or if industry codes are not given for the entire time period in which a company is in the dataset.
In the example I have given, I would want to drop all observations for id 203, not only the one where the code is missing.
Thank you very much.
Comment