For each country and each indicator, I want to compute the simple average across time period. But before I do this I have to clean data. This process involves deleting the countries with data missing for all years. There will be some countries with missing data for some of the years; I want to keep them as long as they have more than 5 data points because that way I can still calculate the average.
I have attached the screenshot of my dataset. I would really appreciate if someone could help me here with the code for panel data.
I have attached the screenshot of my dataset. I would really appreciate if someone could help me here with the code for panel data.
Comment