I am currently working with survey data in Stata. The set of items i am working with includes 5 items, each measured on a 4-point scale.
What i am trying to do is list every possible combination of responses to these items sorted by how often they have been observed. How is this possible?
In the most optimal case, my output would look like this (values are just for illustrative purposes):
v1 | v2 | v3 | v4 | v5 | Times Observed | In % | |
1.Combination | ++ | + | - | ++ | - | 300 | 30 |
2. Combination | - | -- | + | -- | + | 200 | 20 |
3. Combination | - | ++ | + | ++ | ++ | 180 | 18 |
etc... | ... | ... | ... | ... | ... | ... | ... |
Thank you for your answers in advance!
0 Response to List all combinations of a set of items sorted by quantity
Post a Comment