Hi everyone,
I have a panel dataset with countries and years from 1999 to 2019. However, for each country there are some repeated years. For example, Bolivia has 2002 recorded 4 times. How do I drop the repeated years for each country while keeping the first occurrence? Meaning that I want 2002 to appear once in Bolivia, and the same for other repeated years for other countries.
Many thanks,
Yasmine
Related Posts with How to drop repeated years in a panel dataset
Changing directories based on a condition.Hello. I am having issues generating a correct command for the following condition. I have a do file…
Graphical display of multiple OLS regressionsHi All, I am running regression models with the same outcome and independent variables across 5 cou…
Convex hulls on scatter plotsA search for discussions of convex hulls in Stata forums or outlets reveals various programs from 19…
Calculating difference between two times in minutesI have two variables - bed time and wake time. bed time is formulated like: 21_30 and wake time is f…
Predict with oprobit: cross-section by fyearHi all, I need to estimate equation (below) via ordered probit and cross-sectionally by fyear. And …
Subscribe to:
Post Comments (Atom)
0 Response to How to drop repeated years in a panel dataset
Post a Comment