Statalist


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

Re: st: showing the mean in histogram


From   n j cox <[email protected]>
To   [email protected]
Subject   Re: st: showing the mean in histogram
Date   Mon, 19 May 2008 16:04:31 +0100

Svend Juul, Scott Merryman and Martin Weiss explained how to
use -summarize- beforehand and use the value of r(mean) in memory
to add a tick (or for that matter an added line). That answers the question directly.

Other ways of showing the mean on a histogram-like display include

1. Official command -dotplot- has a -mean- option.

2. User-written command -beamplot- drives home the idea that the mean is the centre of gravity of a sample distribution. Download from SSC if required using -ssc-.

3. User-written command -stripplot- has a -bar- option that adds mean plus confidence interval to each display. To get a display with histogram-like shape, use -width()- and -stack- options.
Download from SSC if required using -ssc-.

Nick
[email protected]

Tunga Kantarci

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/




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