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

Re: st: showing the mean in histogram

From   n j cox <>
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-.


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:

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