*----------- begin example -----------
sysuse auto
sum price if foreign == 1, detail
local medfor = r(p50)
sum price if foreign == 0, detail
local meddom = r(p50)
dotplot price, over(foreign) /*
*/ yline(`medfor', lpattern(dot) ) /*
*/ yline(`meddom', lpattern(dash))
*------------ end example -------------
--- Lukar Ezra Thornton <[email protected]> wrote:
> Is there a way to display the median value on a dot plot by a line
> rather than by a row of ++? I have a dot plot over three groups and
> I want just a small line showing where the median is for each group.
>
> Thanks
> Lukar
>
> -----------------------------------------------
> Lukar Thornton
> PhD Candidate / VicLANES Research Assistant
> [email protected]
> Ph: (03) 8344 7389
> Mob: 0410 566 848
> http://www.kcwhs.unimelb.edu.au/viclanes/
> ----------------------------------------------
>
>
>
>
>
> *
> * 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/
>
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z434
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
Send instant messages to your online friends http://uk.messenger.yahoo.com
*
* 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/