Hi,
I am using economic data from the Penn World table. I have a problem with a simple way of dropping countries with no observations from 1950 - 2011. In some way, I want to work with countries that have observations for the entire of 1950 - 2011 series. Some countries have only observations starting from 1970. How can I just drop this countries without manually going into the data and scrolling through?
if I implement
the entire data is dropped. rgdpe is real gdp expenditure, a variable I intend to use and wont allow it dropped at least for all countries with observations for the entire series. I also tried this,
which only dropped the missings. All together, I dont get the "balanced" time series data.
Thanks.
I am using economic data from the Penn World table. I have a problem with a simple way of dropping countries with no observations from 1950 - 2011. In some way, I want to work with countries that have observations for the entire of 1950 - 2011 series. Some countries have only observations starting from 1970. How can I just drop this countries without manually going into the data and scrolling through?
if I implement
Code:
keep if year == 1950/2011 & rgdpe!=.
Code:
by country, sort: keep if rgdpe!=.
Thanks.
Comment