Hello,
I am new to stata and could use some help, please. My dataset looks like this:
I would like to have summary statistics of the string variable "Category". So, how many times a specific letter comes up for individual 1, what is the mean, median for the frequency of each letter across observations.
I am not sure if there are commands for that or if I have to collapse the dataset?! I tried collapsing but it seems more difficult with string variables.
Thank you so much!
I am new to stata and could use some help, please. My dataset looks like this:
Individual | Observation | Category |
1 | 1 | A |
1 | 1 | B |
1 | 1 | A |
1 | 2 | D |
1 | 2 | F |
2 | 1 | F |
2 | 1 | F |
2 | 2 | A |
2 | 2 | C |
I am not sure if there are commands for that or if I have to collapse the dataset?! I tried collapsing but it seems more difficult with string variables.
Thank you so much!
Comment