Hello, I am new to stata and would appreciate any help, I am trying to rearrange my data so I can run a regression in a straightforward way.
Currently my data looks like this :
. tab GamFrq
Frequency spends money on gambling | Freq. Percent Cum.
----------------------------------------+-----------------------------------
2 or more times a week | 846 13.95 13.95
Once a week | 1,786 29.45 43.40
Less than once a week, more than once a | 589 9.71 53.12
Once a month | 665 10.97 64.08
Every 2-3 months | 742 12.24 76.32
Once or twice a year | 1,436 23.68 100.00
----------------------------------------+-----------------------------------
Total 6,064 100.00
But ideally I want it the other way around starting with the least frequent and so on.
the data type is byte in case this information is important
Many thanks to anyone who can help
Currently my data looks like this :
. tab GamFrq
Frequency spends money on gambling | Freq. Percent Cum.
----------------------------------------+-----------------------------------
2 or more times a week | 846 13.95 13.95
Once a week | 1,786 29.45 43.40
Less than once a week, more than once a | 589 9.71 53.12
Once a month | 665 10.97 64.08
Every 2-3 months | 742 12.24 76.32
Once or twice a year | 1,436 23.68 100.00
----------------------------------------+-----------------------------------
Total 6,064 100.00
But ideally I want it the other way around starting with the least frequent and so on.
the data type is byte in case this information is important
Many thanks to anyone who can help

Comment