Hi, I have a cross-sectional dataset with 25,899 observations. This is essentially unbalanced panel data. There are 2 waves and cover 5 countries. I was wondering if there is a way to transform this unbalanced panel data into a balanced dataset.
I started by creating an n variable that counts the number of observations for each country. I used the code:
generate n = _N
However, I do not know if this is exactly correct.
I know I would need a code that would drop the observations if they were not observed in waves 1 and 2.
Thank you
I started by creating an n variable that counts the number of observations for each country. I used the code:
generate n = _N
However, I do not know if this is exactly correct.
I know I would need a code that would drop the observations if they were not observed in waves 1 and 2.
Thank you
Comment