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
Replace values of a variable depending on a series of id variablesHi, Im currently trying to calcule a growth rate for a variable but the way that my data is organiz…
Estimating Demand Elasticity with Log-Log Model | How to Specify Panel Regression?Hello, My objective is to estimate the effect that a 1% change in the volume of ride-share trips co…
Random-Number Generator Version ##: set seed - different resultsI found an issue with using the RNG and set seed with different versions of Stata. I had used versio…
firthlogit: initial vector: matrix must be dimension 10Dear Stataforum First, I want to thank all Stataforum contributors for your yeoman service. I have …
Update to -kmatch- available from SSCAn update to kmatch is available from the SSC archive. Type Code: . ssc install kmatch, replace t…
Subscribe to:
Post Comments (Atom)
0 Response to How to drop repeated years in a panel dataset
Post a Comment