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

st: updates to -tabplot- and -tableplot- on SSC


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: updates to -tabplot- and -tableplot- on SSC
Date   Wed, 27 Oct 2004 18:36:06 +0100

Thanks to Kit Baum, the -tabplot- and -tableplot- 
packages on SSC have been updated. 

The main purpose of these programs is to display twoway 
tables as arrays of bars with heights proportional to the 
values of cell frequencies or percents (-tabplot-) or 
of a third variable (-tableplot-). 

Thus 

tabplot foreign rep78 

gives you a graphical display of the frequencies of the 
combinations of -foreign- and -rep78-, and 

egen meanprice = mean(price), by(foreign rep78) 
label var meanprice "mean price, USD" 
tableplot meanprice foreign rep78 

gives a graphical display of mean price for each 
such combination. 

The updating gives support to a -showval- option 
which adds the numbers to the display by each bar, 
thus enhancing the hybrid character of a tabular graph 
or a graphical table. 

In at least some circumstances, the displays can be 
friendlier than arrays of stacked (divided) bars. 

There was some discussion of these programs in Stata 
Journal 4(2) (2004). 

Nick 
n.j.cox@durham.ac.uk 

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