Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Histogram by var total option: Display only total histogram?


From   "Duszynski, Andre (Health)" <Andre.Duszynski@health.sa.gov.au>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Histogram by var total option: Display only total histogram?
Date   Mon, 21 Dec 2009 10:10:12 +1030

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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Duszynski, Andre
(Health)
Sent: Sonntag, 20. Dezember 2009 23:56
To: 'statalist@hsphsun2.harvard.edu'
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/



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