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.
Related Posts with Generating the AVERAGE, by dropping Missing Values
How to do many similar loopsHi, Stata experts, I have need to repeat the same foreach loop for different variables but with the…
insufficient observations r(2001);hello every one. I am using on cross-section data . but when I run regression I receive this error: …
KMATCH Matching Diagnostics Tests AvailabilityI started to work with the KMATCH command for propensity score matching and I am a bit struggling wi…
New Variable for Average Value of First Half of ObservationsGood morning, I would like to generate a newvar that returns the average of the 'rating' variable, …
Replacing missing variables in a data set with duplicate data by rowI am struggling to replace missing data with a particular value in my dataset which has multiple dup…
Subscribe to:
Post Comments (Atom)
0 Response to Generating the AVERAGE, by dropping Missing Values
Post a Comment