I have a variable which is ID with 26000 observations, there are more than 2000 values, some are repetitive. I want to find what is the mean of frequency of each value. I tried other code and it keeps showing too many values, but values is not what I am looking for. The next step is what I am finding, which is the mean of frequency of values, not the values itself. How can I solve this?
Related Posts with mean of frequency of each value
Help Using CountIf Function?Dear all, I am using Stata 16, on mac. I have taken a snapshot on the panel dataset I am working wi…
How to identify dummy changes over period?Hello Statalists, So the dataset is a panel year month HS Codes subject to NTM (Non-tariff Measure)…
Multiple Correspondence Analysis in StataDear Stata users, Good morning. I have created a perception index using multiple correspondence an…
How to use loops and macros to delete consecutive observations based on characteristics of the last observation in the group?Hey folks. I have choice data that has the following structure: Code: * Example generated by -data…
Why my loop codes failed? Code: xtset id week eststo: xtreg _contritotal afterblock age age2 if inrange(week, -4, 4) & we…
Subscribe to:
Post Comments (Atom)
0 Response to mean of frequency of each value
Post a Comment