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
Error after -cem- command (coarsened exact matching)Hi all, Using Stata 17, I am trying to run coarsened exact matching commands (i.e., -cem-) introduc…
Regarding Interval data (generating more years and duplicating values)Dear, Can anyone help me to manage the data? I have interval data. Since the data are only availabl…
What is the reference for excluding a covariate if there is many missing observation?Normally, I exclude a covariate out of the regression equation if there are many missing observation…
Regarding Interval data (generating more years and duplicating values)Dear, Can anyone help me to manage the data? I have interval data. Since the data are only availabl…
How to graph the moderating effect(moderator: dummy variable) of a quadratic model?Dear specialists, I really thank everyone here sparing no efforts to help me. I have a censored da…
Subscribe to:
Post Comments (Atom)
0 Response to How to drop repeated years in a panel dataset
Post a Comment