MA_V wrote:
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...
----------------------------------------------------------
This does work:
histogram var1 , by(var2)
Svend
__________________________________________
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone: +45 8942 6090
Home: +45 8693 7796
Email: [email protected]
__________________________________________
*
* 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/