Hello members,
I would like to find out how many different values there are for the variable betnr (establishment number) per year.
To do this, I used the command "egen count_betnr = group(betnr year)" to count the number of different establishment numbers per year.
However, I then get different numbers for the same year. How can this be explained?
Is there another approach to count the number of different establishment numbers per year?
I would like to find out how many different values there are for the variable betnr (establishment number) per year.
To do this, I used the command "egen count_betnr = group(betnr year)" to count the number of different establishment numbers per year.
However, I then get different numbers for the same year. How can this be explained?
Is there another approach to count the number of different establishment numbers per year?
Comment