I am trying to change the order of the tabulation for household income, the order comes up as shown below:
. tabulate hincome
Household income |
(annual) | Freq. Percent Cum.
------------------+-----------------------------------
0 - £19,999 | 12 12.00 12.00
£100,000 and over | 14 14.00 26.00
£20,000 - £39,999 | 16 16.00 42.00
£40,000 - £59,999 | 20 20.00 62.00
£60,000 - £79,999 | 24 24.00 86.00
£80,000 - £99,999 | 14 14.00 100.00
------------------+-----------------------------------
Total | 100 100.00
I have tried using the command:
. label define order 1 "0-£19999" 2 "£20000-£39999" 3 "£40000-£59999" 4 "£60000-£79999" 5 "£80000-£99999" 6 "£100000 and over"
but it hasn't moved "£100,000 and over" to the bottom.
Any suggestions how I can move it? Thank you
. tabulate hincome
Household income |
(annual) | Freq. Percent Cum.
------------------+-----------------------------------
0 - £19,999 | 12 12.00 12.00
£100,000 and over | 14 14.00 26.00
£20,000 - £39,999 | 16 16.00 42.00
£40,000 - £59,999 | 20 20.00 62.00
£60,000 - £79,999 | 24 24.00 86.00
£80,000 - £99,999 | 14 14.00 100.00
------------------+-----------------------------------
Total | 100 100.00
I have tried using the command:
. label define order 1 "0-£19999" 2 "£20000-£39999" 3 "£40000-£59999" 4 "£60000-£79999" 5 "£80000-£99999" 6 "£100000 and over"
but it hasn't moved "£100,000 and over" to the bottom.
Any suggestions how I can move it? Thank you
Comment