Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AW: st: AW: AW: Adding the mean to a boxplot
From
[email protected]
To
[email protected]
Subject
Re: AW: st: AW: AW: Adding the mean to a boxplot
Date
Fri, 7 May 2010 10:00:26 -0400 (EDT)
Your code runs fine. I can't explain it, but thanks.
BTW, I'm running
Stata/IC 11.0 for Windows (32-bit)
Born 20 Apr 2010
reg
-----Original Message-----
>From: Martin Weiss <[email protected]>
>Sent: May 7, 2010 9:52 AM
>To: [email protected]
>Subject: AW: st: AW: AW: Adding the mean to a boxplot
>
>
><>
>
>The code runs for me on
>
>
>
>Stata/MP 11.0 for Windows (64-bit x86-64)
>Born 20 Apr 2010
>
>
>
>
>HTH
>Martin
>
>
>-----Ursprüngliche Nachricht-----
>Von: [email protected] [mailto:[email protected]] Im Auftrag von [email protected]
>Gesendet: Freitag, 7. Mai 2010 15:42
>An: [email protected]
>Betreff: Re: st: AW: AW: Adding the mean to a boxplot
>
>When I run your code, I get an "invalid label specifier, : 157.3916666666667 .:"
>
>reg
>
>-----Original Message-----
>>From: Martin Weiss <[email protected]>
>>Sent: May 7, 2010 9:27 AM
>>To: [email protected]
>>Subject: st: AW: AW: Adding the mean to a boxplot
>>
>>
>><>
>>
>>Here is your code:
>>
>>
>>*************
>>sysuse bplong, clear
>>su bp if sex, mean
>>loc myfirstmean=r(mean)
>>su bp if !sex, mean
>>graph box bp, over(sex) ///
>>yli(`r(mean)' `myfirstmean') yla(`r(mean)' `myfirstmean')
>>*************
>>
>>
>>
>>HTH
>>Martin
>>
>>
>>-----Ursprüngliche Nachricht-----
>>Von: [email protected] [mailto:[email protected]] Im Auftrag von Martin Weiss
>>Gesendet: Freitag, 7. Mai 2010 15:25
>>An: [email protected]
>>Betreff: st: AW: Adding the mean to a boxplot
>>
>>
>><>
>>
>>Something tells me this is my code, not Nick`s. He might have cited it in his http://www.stata.com/statalist/archive/2009-06/msg00495.html post?
>>
>>
>>
>>HTH
>>Martin
>>
>>
>>-----Ursprüngliche Nachricht-----
>>Von: [email protected] [mailto:[email protected]] Im Auftrag von [email protected]
>>Gesendet: Freitag, 7. Mai 2010 15:06
>>An: Statalist
>>Betreff: st: Adding the mean to a boxplot
>>
>>I've read:
>>
>>st: RE: Re: Boxplot w/ 2nd y-axis and mean overlay
>>>>>From "Nick Cox" <[email protected]>
>>To <[email protected]>
>>Subject st: RE: Re: Boxplot w/ 2nd y-axis and mean overlay
>>Date Sun, 14 Jun 2009 18:16:01 +0100
>>
>><snip> <snip>
>>
>>"Additionally, I'd like to add the mean to the boxplot. Is there a way
>>to do so?"
>>
>>***
>>sysuse bplong, clear
>>su bp, mean
>>graph box bp, over(sex) ///
>>yli(`r(mean)') yla(`r(mean)')
>>
>>Suppose, instead, I wanted to place a marker (x, for example) representing the mean for males, and a marker representing the mean for females on the boxplot. How could this be accomplished?
>>
>>As always, thank you for your assistance.
>>
>>reg
>>*
>>* For searches and help try:
>>* http://www.stata.com/help.cgi?search
>>* http://www.stata.com/support/statalist/faq
>>* http://www.ats.ucla.edu/stat/stata/
>>
>>
>>*
>>* For searches and help try:
>>* http://www.stata.com/help.cgi?search
>>* http://www.stata.com/support/statalist/faq
>>* http://www.ats.ucla.edu/stat/stata/
>>
>>
>>*
>>* For searches and help try:
>>* http://www.stata.com/help.cgi?search
>>* http://www.stata.com/support/statalist/faq
>>* http://www.ats.ucla.edu/stat/stata/
>
>
>*
>* For searches and help try:
>* http://www.stata.com/help.cgi?search
>* http://www.stata.com/support/statalist/faq
>* http://www.ats.ucla.edu/stat/stata/
>
>
>*
>* For searches and help try:
>* http://www.stata.com/help.cgi?search
>* http://www.stata.com/support/statalist/faq
>* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/