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
Duplicate observations from group to individual levelDear all I am quite new to stata and currently working with a dataset abouth health. This data come…
Problem "too few quotes" by using a graph hbarHey Folks, i want to create a 100-Percent-Graph--bar with 14 Variables . For this i already have a …
Should i use fixed effects or random effects for my paneldata ??Hello, I am currently writing a thesis on democratization in Latin America and the Caribbean. I have…
Using xtile while suppressing an outlier valueHi All, I'm trying to create a new variable that assigns each observation to a percentile within my…
Partial dependence plotsHello, I'd like to ask if partial dependence plots are available in stata and how to get it? https:/…
Subscribe to:
Post Comments (Atom)
0 Response to How To Count Identical Values As One Without Dropping
Post a Comment