Hi all,
This seems to me a very easy thing to calculate, but I haven't been able to figure it out for hours now. I want to have in a separate variable: the count of the number of observations with the same value in a row of another variable. Preferably this would be combined with a "by" function. The command "tablulate" give a table, the command "tablepc" gives it in relative terms, but me I just want to have it count terms.
Isn't there a simple egen function or formula for this thing?
Many thanks!
Best wishes,
Erik van der Marel
This seems to me a very easy thing to calculate, but I haven't been able to figure it out for hours now. I want to have in a separate variable: the count of the number of observations with the same value in a row of another variable. Preferably this would be combined with a "by" function. The command "tablulate" give a table, the command "tablepc" gives it in relative terms, but me I just want to have it count terms.
Isn't there a simple egen function or formula for this thing?
Many thanks!
Best wishes,
Erik van der Marel

Comment