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" <palronning@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <n.j.cox@durham.ac.uk> 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
> n.j.cox@durham.ac.uk
>
> Maarten Buis
>
> --- Pål Rønning <palronning@gmail.com> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index