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

st: RE: two variables in one histogram graph


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: two variables in one histogram graph
Date   Tue, 10 May 2005 20:06:55 +0100

I can't speak for STATA. In Stata you 
can superimpose histograms using e.g. 

twoway histogram ... || histogram ... 

although the result is often a mess. 
A -dotplot-, a oneway plot, a quantile plot,
etc. can often be much more effective. 

A rather long-winded but nevertheless heartfelt 
discussion appeared in 

Graphing distributions. Stata Journal 4(1): 66--88
(2004) 

a review of official and user-written commands for
graphing univariate distributions; includes tricks
beyond what is obviously and readily available

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

Seok-Woo Kwon
 
> I am trying to create a histogram of two variables in the same graph,
> showing the frequency of two variables at each value on 
> X-axis. Is there a way to do this in STATA?

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