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
Creating a string variable with multiple different word valuesHello, I am relatively new to STATA, with only a couple months experience and not much string exper…
Drop before calculating a meanHey guys ! If I have a dummy with 1 and zero wether a trade is a buy or sell and want to find out wh…
Mata matrix to variables using st_storeI've created a matrix of Halton Draws in Mata, and I'd like to use each column of the matrix as a va…
Logit RegressionI'm a beginner to Stata. How do I import two (binary dependent variables) Excel files into one Stata…
Initial period variablesHi all, What is the best model to use when one has initial period variables such as log of initial …
Subscribe to:
Post Comments (Atom)
0 Response to Distribution of frequency of a unique variable
Post a Comment