Statalist The Stata Listserver


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

Re: st: Histograms and "by"


From   "Svend Juul" <[email protected]>
To   <[email protected]>
Subject   Re: st: Histograms and "by"
Date   Tue, 25 Apr 2006 09:28:41 +0200

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index