Hi everyone
I am relatively new to STATA. I have the following problem I cannot solve:
Given my data looks as following:
game ID
1
1
1
1
1
2
2
2
3
3
3
3
I have 12 observations, 3 different unique values. On average, therefore, I have 4 observations per game ID. However, what I am looking for is the distribution of the observations per unique value. Put differently, I need more information (e.g. SD) than just the average number of observation per game. All codes I found so far, provide information about the distribution of the values itself (3 is seen as a number and not as an ID without real significance).
Thank you a lot
Giulia
Related Posts with Distribution of frequency of a unique variable
-marginsplot- after -logit-Hello, After running a logit model, -logit- command with -vce(cluster)-, with continuous-by-continu…
xtabond2 and xtdpdsysI am trying to replicate the xtdpdsys command using the xtabond2 command, but I keep getting differe…
xtdpdsys & Hansen TestHello everyone, I am using the xtdpdsys with the option vce(robust) and I am trying to get the Hanse…
understand the stata codeI find a code for generating 97th percentile for each year. However, I am not sure why the percentil…
create new variableHi all, I have an unbalanced data HTML Code: tsset code date panel variable: code (unba…
Subscribe to:
Post Comments (Atom)
0 Response to Distribution of frequency of a unique variable
Post a Comment