Dear statalists,
I have following dataset and would like to count the unique number (remove duplicates) of analyst (according to the analyst code) with respect to the firm for each year.
Many thanks in advance.
Best!!
I have following dataset and would like to count the unique number (remove duplicates) of analyst (according to the analyst code) with respect to the firm for each year.
firm id | analyst code | year |
00130H10 | 9494 | 1996 |
00130H10 | 7422 | 1996 |
00130H10 | 1.80E+04 | 1996 |
00130H10 | 9946 | 1996 |
00130H10 | 3.20E+04 | 1996 |
00130H10 | 9946 | 1996 |
00130H10 | 3.20E+04 | 1996 |
00130H10 | 3.10E+04 | 1996 |
00130H10 | 9932 | 1996 |
00130H10 | 7422 | 1996 |
00130H10 | 3.20E+04 | 1996 |
00130H10 | 9932 | 1996 |
00130H10 | 3.10E+04 | 1996 |
00130H10 | 7422 | 1996 |
00130H10 | 0 | 1997 |
00130H10 | 1.80E+04 | 1997 |
00130H10 | 9946 | 1997 |
00130H10 | 9946 | 1997 |
00130H10 | 1646 | 1997 |
00130H10 | 556 | 1997 |
00130H10 | 3.10E+04 | 1997 |
00130H10 | 9494 | 1997 |
00130H10 | 3.20E+04 | 1997 |
00130H10 | 3.10E+04 | 1997 |
00130H10 | 1112 | 1997 |
00130H10 | 9494 | 1997 |
00130H10 | 9946 | 1997 |
00130H10 | 3.20E+04 | 1997 |
00130H10 | 1112 | 1997 |
Best!!
Comment