I have a series of Likert variables and I'm trying to get a tabulation of all of them in a single table and have control over the labels. If I use a simple tabm command, I get all labels:
If I try to define labels for the upper set, nothing happens. This produces the same output as above.
If I use the nolabel option, the table has integers instead of variable names on the left side. I don't know why it does this when I didn't specify erasing a name but rather a label.
What I'd like to get is this:
Code:
. tabm inc1w1 inc2w1 inc3w1 inc4w1 inc5w1 inc6w1, valuelabel(toseven)
| values
variable | Very inac Moderatel A little Neutral ( A little Moderatel Very accu | Total
----------------------+-----------------------------------------------------------------------------+----------
In the past seven day | 3 0 5 1 10 80 129 | 228
In the past seven day | 2 1 1 8 10 74 132 | 228
In the past seven day | 3 2 1 3 19 65 134 | 227
In the past seven day | 3 1 2 14 21 64 123 | 228
In the past seven day | 3 1 0 12 15 76 121 | 228
In the past seven day | 2 0 1 14 21 67 123 | 228
----------------------+-----------------------------------------------------------------------------+----------
Total | 16 5 10 52 96 426 762 | 1,367
Code:
label define toseven 1 "1" 2 "2" 3 "3" 4 "4" 5 "5" 6 "6" 7 "7" tabm inc1w1 inc2w1 inc3w1 inc4w1 inc5w1 inc6w1, valuelabel(toseven)
Code:
. tabm inc1w1 inc2w1 inc3w1 inc4w1 inc5w1 inc6w1, nolabel
| values
variable | 1 2 3 4 5 6 7 | Total
-----------+-----------------------------------------------------------------------------+----------
1 | 3 0 5 1 10 80 129 | 228
2 | 2 1 1 8 10 74 132 | 228
3 | 3 2 1 3 19 65 134 | 227
4 | 3 1 2 14 21 64 123 | 228
5 | 3 1 0 12 15 76 121 | 228
6 | 2 0 1 14 21 67 123 | 228
-----------+-----------------------------------------------------------------------------+----------
Total | 16 5 10 52 96 426 762 | 1,367
.
What I'd like to get is this:
Code:
. tabm inc1w1 inc2w1 inc3w1 inc4w1 inc5w1 inc6w1, nolabel
| values
variable | 1 2 3 4 5 6 7 | Total
-----------+-----------------------------------------------------------------------------+----------
inc1w1 | 3 0 5 1 10 80 129 | 228
inc1w2 | 2 1 1 8 10 74 132 | 228
inc1w3 | 3 2 1 3 19 65 134 | 227
inc1w4 | 3 1 2 14 21 64 123 | 228
inc1w5 | 3 1 0 12 15 76 121 | 228
inc1w6 | 2 0 1 14 21 67 123 | 228
-----------+-----------------------------------------------------------------------------+----------
Total | 16 5 10 52 96 426 762 | 1,367
.

Comment