Hi,
Hi,
sysuse auto, clear
. tab rep78 foreign, row
+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+
    Repair |
    Record |       Car type
      1978 |  Domestic    Foreign |     Total
-----------+----------------------+----------
         1 |         2          0 |         2
           |    100.00       0.00 |    100.00
-----------+----------------------+----------
         2 |         8          0 |         8
           |    100.00       0.00 |    100.00
-----------+----------------------+----------
         3 |        27          3 |        30
           |     90.00      10.00 |    100.00
-----------+----------------------+----------
         4 |         9          9 |        18
           |     50.00      50.00 |    100.00
-----------+----------------------+----------
         5 |         2          9 |        11
           |     18.18      81.82 |    100.00
-----------+----------------------+----------
     Total |        48         21 |        69
           |     69.57      30.43 |    100.00
. tab rep78 foreign, col
+-------------------+
| Key               |
|-------------------|
|     frequency     |
| column percentage |
+-------------------+
    Repair |
    Record |       Car type
      1978 |  Domestic    Foreign |     Total
-----------+----------------------+----------
         1 |         2          0 |         2
           |      4.17       0.00 |      2.90
-----------+----------------------+----------
         2 |         8          0 |         8
           |     16.67       0.00 |     11.59
-----------+----------------------+----------
         3 |        27          3 |        30
           |     56.25      14.29 |     43.48
-----------+----------------------+----------
         4 |         9          9 |        18
           |     18.75      42.86 |     26.09
-----------+----------------------+----------
         5 |         2          9 |        11
           |      4.17      42.86 |     15.94
-----------+----------------------+----------
     Total |        48         21 |        69
           |    100.00     100.00 |    100.00 
--- Ziad El-Khatib <[email protected]> wrote:
> Hi again
> i am used to cross-tab 2 variables in SPSS where the
> person can show %
> for row or columns.
> any tips how to do it in STATA?
> 
> thank you and best regards
> ziad
> *
> *   For searches and help try:
> *  
> http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 
       
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/