Statalist The Stata Listserver


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

st: Histograms and "by"


From   "MA V" <[email protected]>
To   [email protected]
Subject   st: Histograms and "by"
Date   Mon, 24 Apr 2006 14:12:48 +0000

Hi--
Is there a relatively easy way of achieving the following?

I have a categorical variable -var1- and I would like to get an histogram of var2 for each of the levels of this variable var1. The problem is that I don't want to do the histograms one by one.
For example, to plot "regular plots", for all the levels, we usually do do
graph bar var1, by(var2)

But I tried using "by" with histograms and had no luck...

Is there something similar that I can use with histograms? I was trying to avoid to plot each of the histograms separately, then saving them and then using combine... Is there an easier way?

Thanks!

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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