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: summary tables for categorical variables
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: summary tables for categorical variables
Date
Wed, 12 Feb 2014 14:14:06 +0000
I was vaguely remembering that -tabm- was based on a temporary
-reshape-, but that is not right; the restructuring is done by
-stack-.
When -tabm- was first written (1998) -stack- was a bigger deal than it
seems now, and -reshape- (if it existed) a lesser deal.
No matter: the key point is just that some of these tabulation
problems are easy once you restructure the data.
Nick
[email protected]
On 12 February 2014 09:16, Maarten Buis <[email protected]> wrote:
> On Tue, Feb 11, 2014 at 11:58 PM, Donald Spady wrote:
>> I looked at -tabm- which is much closer to what is needed, but it does not give the option of say percentage rather than frequency.
>
> You can add options allowed for -tabulate- to -tabm- (except that the
> -missing- option will work differently for -tabm- and -tabulate-), see
> -help tabulate twoway-. So, if you want to add percentages you can
> type -tabm varlist, row-. If you want to leave the frequencies out you
> can type -tabm varlist, row nofreq-.
>
> Hope this helps,
> Maarten
>
> ---------------------------------
> Maarten L. Buis
> WZB
> Reichpietschufer 50
> 10785 Berlin
> Germany
>
> http://www.maartenbuis.nl
> ---------------------------------
> *
> * 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/