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
rologit predict stdpHello, I am performing an rank-ordered logit analysis using the rologit Stata command. In post-esti…
Reshape wide -- categories as variables Code: +---------------------------------------------------------------------------------------…
Convergence not achieved (error 430) Dear STATALIST, I am estimating an endogenous switching regression model using the 'movestay' com…
label problem pie chartHello, I am creating pie charts over a number of identifiers. Please see below for screenshot. The…
Generate X(t) = 0.7X(t-1) + epHow to generate a series X(t) = 0.7*X(t-1) + ep where X(0) = 10 , ep is normal(0,1) and t = 1, 2, ..…
Subscribe to:
Post Comments (Atom)
0 Response to Generating the AVERAGE, by dropping Missing Values
Post a Comment