I have id and wave (year) for unbalanced panel data. All I have is 10 years panel but I am only using 4 years for my research. What is the code to count how many years's dummy is 1 for the same id? For example, for id 1, is 2, for id 2 is 2 and id 3 is 1.
-
Login or Register
- Log in with
Comment