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
Why probit works, but multinomial probit doesn't?In short, I estimate 4 probit regressions, examining the effects of a variable X on the probability …
operating a code only on the "not distinct" observationsHi everyone, I would like to use an if statement with the unique command, in order to operate a code…
Comparing coefficients between two ivregress modelsTo Statalist I used -gmm- to test the equality between two variables (b1, c1) in different models r…
Measuring how a difference-in-difference indicator varies with respect to another independent variableHi, My first step of my analysis is estimating the difference-in-difference using a regression anal…
Panel Unit Root Tests and Cointegration - Lag ProblemHello! I am a fresh Stata user and not very excellent on econometrics. My data is consisted of N=8 a…
Subscribe to:
Post Comments (Atom)
0 Response to How to drop repeated years in a panel dataset
Post a Comment