Dear Stata Community,
I'm trying to 'count the number of years each person attended the conference over the period of 20 years'. Datasets year's values are oftentimes repeated its because when a person attends the conference more than once a year. I tried 'collapse (count) Year, by (Attendance Persons)', however, as expected, the code is also counting the repeated years giving me more than 20 years of attendance for some of the people in the dataset. I would really appreciate if you could show me some guidance to fix the problem.
This is my first post and I'm very new to the Stata. Please let me know if I'm being unclear.
Thank you so much in advance.
Best wishes,
David
Related Posts with How To Count Identical Values As One Without Dropping
export excel, sheet and xls documentHi, I have been experiencing difficulties with export excel when used with xls documents (not xlsx)…
Exporting marginal effect to excel/word document using outreg2 commandHi everyone, I have a long table of marginal effects and their corresponding SEs and CIs. I was wond…
Main directory Mac OSHi, I am currently using Mac OS X stata, and I have some problems setting the main directory. I am…
How to export my Stata result in target?Hi Statalisters, During my coding work, I want to export my result in real time in whatever file fo…
How can I calculate the standard deviation with weight??Dear All, I have survey data. It's collected through stratified sampling method. I set a weight whic…
Subscribe to:
Post Comments (Atom)
0 Response to How To Count Identical Values As One Without Dropping
Post a Comment