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" <[email protected]>
To   <[email protected]>
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 
[email protected] 

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Daniel Egan
> Sent: 27 May 2004 17:59
> To: [email protected]
> 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index