Hello Statalist,
I am currently writing my bachelor thesis in applied statistics and need your help with something that seems simpler than it might be.
I have this variable personid and I'm trying to figure out how many different people there are in my data set. Is has values from 1 to 5378. However not ever value between 1 and 5378 is used. Also some appear multipe times (but are the same person).
Is there an easy way to count the number of differend personids in my data set?
I also found this thread, however the instructions didn't work for me. https://www.stata.com/statalist/arch.../msg00745.html
Thank you in advance!
Best,
Markus
I am currently writing my bachelor thesis in applied statistics and need your help with something that seems simpler than it might be.
I have this variable personid and I'm trying to figure out how many different people there are in my data set. Is has values from 1 to 5378. However not ever value between 1 and 5378 is used. Also some appear multipe times (but are the same person).
Is there an easy way to count the number of differend personids in my data set?
I also found this thread, however the instructions didn't work for me. https://www.stata.com/statalist/arch.../msg00745.html
Thank you in advance!
Best,
Markus
Comment