Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: Re: st: tabulate and graph bar


From   "P�l R�nning" <[email protected]>
To   [email protected]
Subject   Re: Re: st: tabulate and graph bar
Date   Tue, 27 May 2008 16:43:10 +0200

Thank you very much Nick. The catplot and tabplot commands very just
what I was looking for.

On Tue, May 27, 2008 at 4:10 PM, n j cox <[email protected]> wrote:
> This may look like the obvious answer, but I don't think it is what is best
> here.
>
> I guess P�l wants to see bar graphs of category frequencies or percents for
> one-, two- or three-way tables.
>
> You can get useful results with a trick
>
> gen frequency = 1
> graph bar (sum) frequency, over(frog) over(toad)
>
> once we recall that counting is adding 1s as many times as is needed.
>
> But it is a small pain to extend this even to simple percent calculations.
> So, as a convenience, there are various user-written programs, of which
> -catplot-, -tabplot- and -spineplot- spring to mind.
>
> -search- using these program names for program locations and documentation,
> including various pieces in the Stata Journal from 2004 and 2008.
>
> Nick
> [email protected]
>
> Maarten Buis
>
> --- P�l R�nning <[email protected]> wrote:
>> What is the easiest way of creating bar graphs of categorical data
>> containing several categories? Sofar I havent found an option to
>> graph after a tab command-does one exist?
>
> -help graph bar-
>
> *
> *   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/
>



-- 
P�l R�nning
Sk�yenvn 93
0375 Oslo
40882465

nevrokirurgisk avd
Ullev�l Universitetessykehus
0407 Oslo
23015389

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