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
Retrieve the "at legend" on top of margins tableHi, I'm using margins to calculate about 3600 predicted values in a loop, using the option at() wit…
Combine two age group variables, tell stata to use youngest ageHi, I am a criminology student analysing survey data. I have two age grouped variables which I would…
Looping replace functionHello all, I am new to STATA and trying to loop replace function. Is there a way to improve my code?…
Loop for generating new variablesHi all, I am a new user to STATA--can you help me loop the generate new variable command? Is there a…
Sorting CIs in a ciplot commandHi, I want to plot the CIs for a proportion by country. It would be useful if I could display the C…
Subscribe to:
Post Comments (Atom)
0 Response to Distribution of frequency of a unique variable
Post a Comment