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
Regression using variable given in decimal changeI'm doing ARIMA with several variables on a time series. Arima value decimalvar1 decimalvar2, ar(1) …
Multilevel data managementHello everyone, Im working with a dataset that includes 2 levels of data: individual level data and…
Which stata command can I use to conduct a randomization check?Hi all. As part of my dissertation, I conducted a between-subjects factorial experiment with two fac…
3SLS and heteroskedasticityHi, I'm running a system of equations model using reg3. Code: Code: reg3 (dlrgdp L.dlrgdp dzsly …
Survival analysis help, parametricHi there, I need help with my research on the duration of a strategy adopted by private equity firm…
Subscribe to:
Post Comments (Atom)
0 Response to How To Count Identical Values As One Without Dropping
Post a Comment