No one (incl Tech support) has picked up on this. Maybe my description
is too cryptic. The point is that "tabulate , col" adds column
statistics (as a row) but "table , col" adds row statistics (as a
column). That seems perverse.
. use auto
(1978 Automobile Data)
. tab foreign rep78, col
+-------------------+
| Key |
|-------------------|
| frequency |
| column percentage |
+-------------------+
| Repair Record 1978
Car type | 1 2 3 4 5 |
Total
-----------+-------------------------------------------------------+----
------
Domestic | 2 8 27 9 2 |
48
| 100.00 100.00 90.00 50.00 18.18 |
69.57
-----------+-------------------------------------------------------+----
------
Foreign | 0 0 3 9 9 |
21
| 0.00 0.00 10.00 50.00 81.82 |
30.43
-----------+-------------------------------------------------------+----
------
Total | 2 8 30 18 11 |
69
| 100.00 100.00 100.00 100.00 100.00 |
100.00
. table foreign rep78, col
----------------------------------------------------
| Repair Record 1978
Car type | 1 2 3 4 5 Total
----------+-----------------------------------------
Domestic | 2 8 27 9 2 48
Foreign | 3 9 9 21
----------------------------------------------------
^^ ROW totals added.
Allan
***********************************************************************************
This email and any attachments are intended for the named recipient only. Its unauthorised use, distribution, disclosure, storage or copying is not permitted. If you have received it in error, please destroy all copies and notify the sender. In messages of a non-business nature, the views and opinions expressed are the author's own and do not necessarily reflect those of the organisation from which it is sent. All emails may be subject to monitoring.
***********************************************************************************
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/