Thanks Martin!
Using the below based on your code produces the totals histogram for the unique "by" variable:
********
hist mpg, by(rep78, total) name(str, replace) nodraw
hist mpg,name(tot, replace)
********
Much appreciated!
Kind regards,
Andre Duszynski.
-----Original Message-----
If that is what you want, why not omit the -by()- part entirely?
*************
sysuse auto, clear
hist mpg, by(rep78, total) name(str, replace) nodraw
hist mpg,name(tot, replace) nodraw
gr combine str tot
*************
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Duszynski, Andre
(Health)
Sent: Sonntag, 20. Dezember 2009 23:56
To: '[email protected]'
Subject: st: Histogram by var total option: Display only total histogram?
Hello,
In using the "histogram yvar, by(xvar, total)" command to produce histograms
of the total and stratified variables, is it possible to supress the display
of all the stratified variable histograms and to only show the total
histogram?
Or should I be using an alternate method to display what I'm after?
Kind regards,
Andre Duszynski
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/