Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: mlabel option for ciplot does not return correct labels


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: mlabel option for ciplot does not return correct labels
Date   Thu, 27 May 2004 20:19:05 +0100

This was answered by me in some detail yesterday
on Statalist. Please see the archives. 

In short, what you want is a reasonable thing 
to want, but -ciplot- is not written in a way 
that supports it. 

Your mailer may split this URL 
http://www.hsph.harvard.edu/cgi-bin/lwgate/STATALIST/archives/statalist.0405/date/article-928.html

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Daniel Egan
> Sent: 27 May 2004 17:59
> To: statalist@hsphsun2.harvard.edu
> Subject: st: mlabel option for ciplot does not return correct labels
> 
> 
> This is the second post trying to get an answer to this, so 
> after this I'll
> take the hint...
> 
> I would like to be able to use
> labels with the mean markers that represent various things (right now,
> number of observations in each category).
> 
> sysuse auto, clear
> egen n=count(foreign), by(foreign)
> table foreign n
> ciplot mpg, by(foreign) mlab(n)
> 
> These labels always only correspond to the value of the first 
> categorical
> label, i.e., category 2's label is the value for category 
> one. It is strange
> since they seem to be working with , mlab(n) correctly.
> 
> How might I go about having each label value correspond to 
> the category
> specific value?
> 
> Thanks,
> 
> Daniel Egan
> *
> *   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