Statalist


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

st: Re: showing the mean in histogram


From   Martin Weiss <martin.weiss1@gmx.de>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: showing the mean in histogram
Date   Sat, 17 May 2008 22:55:41 +0200

********
sysuse auto
su headroom,mean
hist h, xline(`r(mean)')
********

would be a way to have a line drawn at the mean. In Stata 10, you could kill 
the line and replace it with a custom line at the relevant location. Other 
listers may have more elaborate advice...


Martin Weiss
_______________________
----- Original Message ----- 
From: "Tunga Kantarci" <tungakantarci@hotmail.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Saturday, May 17, 2008 10:35 PM
Subject: st: showing the mean in histogram


> Hello,
>
> I would like to indicate the mean on the histogram,
> with a tick on the horizontal axis.
> Is there a way to do this?
>
>
> *
> *   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/ 


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index