Hello Everyone,

I have Ten years of Data (2005 to 2015) for an X variable for 200 countries (data taken from WDI)

I wanted to generate an average for TEN years of data. But the problem is that there are some missing values in the years for some countries.

Now my doubt is How to drop a country with data not available for less than three years?


Please suggest me the Stata code for Generating the average from TEN years data, by dropping the countries with less than three years missing data.

Thanks in Advance.