Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: tabulation question


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: tabulation question
Date   Mon, 4 Nov 2013 21:21:51 +0000

Not sure where you're going with this, but check out -tabm- from
-tab_chi- (SSC).
Nick
[email protected]


On 4 November 2013 20:48, Nikolaos Pandis <[email protected]> wrote:
> Sergiy
>
> Thanks! It looks great
> I added a loop to do this for several variables.
> How can I add the % of the row total next to the frequencies?
>
> Best,
>
> Nick
>
> On Mon, Nov 4, 2013 at 10:18 PM, Sergiy Radyakin <[email protected]> wrote:
>> Yes, Nick:
>> do http://radyakin.org/statalist/2013110401/horiz_freq.do
>> perhaps there are multiple other ways to do it.
>>
>> Best, Sergiy Radyakin
>>
>> On Mon, Nov 4, 2013 at 2:42 PM, Nikolaos Pandis <[email protected]> wrote:
>>> Hi,
>>>
>>> Is there a way to put the levels of the categorical variable (1-3)
>>> into the columns and the frequencies in the rows?
>>> Thank you,
>>> Nick
>>> tabulate catvar
>>> catvar      |
>>>             |
>>>             |      Freq.     Percent        Cum.
>>> ------------+-----------------------------------
>>>           1 |         15       10.20       10.20
>>>           2 |         16       10.88       21.09
>>>           3 |        116       78.91      100.00
>>> ------------+-----------------------------------
>>>       Total |        147      100.00
>>> *
>>> *   For searches and help try:
>>> *   http://www.stata.com/help.cgi?search
>>> *   http://www.stata.com/support/faqs/resources/statalist-faq/
>>> *   http://www.ats.ucla.edu/stat/stata/
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/faqs/resources/statalist-faq/
>> *   http://www.ats.ucla.edu/stat/stata/
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index