Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: version of tabulate


From   Lars Korsholm <[email protected]>
To   [email protected]
Subject   st: version of tabulate
Date   Thu, 2 Oct 2003 17:33:32 +0200 (MEST)

Hi

Has anyone writen a version of tab1
where the variables  are not showen seperatly but in one common table side
by side in columens (maybe without the percentage)

tab1 x y 
give:

-> tabulation of x  

          x |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |          9        9.00        9.00
          1 |         10       10.00       19.00
          2 |         10       10.00       29.00
          3 |         10       10.00       39.00
          4 |         10       10.00       49.00
          5 |         10       10.00       59.00
          6 |         10       10.00       69.00
          7 |         10       10.00       79.00
          8 |         10       10.00       89.00
          9 |         10       10.00       99.00
         10 |          1        1.00      100.00
------------+-----------------------------------
      Total |        100      100.00

-> tabulation of y  

          y |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |          9        9.00        9.00
          1 |         12       12.00       21.00
          2 |         17       17.00       38.00
          3 |          7        7.00       45.00
          4 |          9        9.00       54.00
          5 |         10       10.00       64.00
          6 |         10       10.00       74.00
          7 |          7        7.00       81.00
          8 |         13       13.00       94.00
          9 |          6        6.00      100.00
------------+-----------------------------------
      Total |        100      100.00




but I want  something like:


      cat   | freq of: x            y
------------+-----------------------------------
          0 |          9            9
          1 |         10    	   12
          2 |         10    	   17
          3 |         10    	    7
          4 |         10    	    9
          5 |         10    	   10
          6 |         10    	   10
          7 |         10    	    7
          8 |         10    	   13
          9 |         10    	    6
         10 |          1            0
------------+-----------------------------------
      Total |        100          100



Best Lars



............................................
: Lars Korsholm Ph.D.,                     :
:  Department of Statistics                :
:  University of Southern Denmark          :
:  Sdr. Boulevard 23A, 2.                  :
:  DK-5000 Odense C                        :
: Phone   +45 6550 3608                    :
: Mobil   +45 3033 3617                    :
: Fax     +45 6595 7766                    :
: Mail    [email protected]              :
: Web     http://www.isd.sdu.dk/~korsholm  :
:..........................................:


*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index