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
Question on xtgee syntaxDear Statlist, I am trying to determine whether there is a difference in the success proportion bet…
2-stage models for panel dataDear All, I am estimating the willingness to pay for insurance over 5 years, whereas the insurance …
How to interpret significant instrumental variables in reduced formHi Stata users, I have a question regarding reduced form estimations. I have regressed my dependent…
Hourly wage using Heckman correctionHey, i ran regression for estimating hourly wages: Y= β1x β2x β3x .... Y= monthly wage / hours wor…
What is the correct way to format/estimate DID within an RCT with multiple treatments?Dear all, I've collected survey data within a multi-armed RCT format, which consists of one control…
Subscribe to:
Post Comments (Atom)
0 Response to How to drop repeated years in a panel dataset
Post a Comment