Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

# Re: st: Plot means with SD

 From Patricia Biedermann To statalist@hsphsun2.harvard.edu Subject Re: st: Plot means with SD Date Wed, 4 Apr 2012 13:12:36 +0200

```Dear David,

Both variables are positive (right) skewed) and the variables come from the same patients. We want to see the difference between the two variables (that people stay longer in hospital as actually needed). The difference of each person is not so important now....we want to see a whole effect.

The results should be presented in mean and SD...(was not my decision...I just have to do the graphs)

Thank you.

On 04.04.2012, at 12:53, David Hoaglin wrote:

> Patricia,
>
> Stepping back from the programming details, I wonder what the basic
> question is.  If the two variables come from the same patients, is
> medstable part of durofstay, and are you also looking at a scatterplot
> of medstable versus durofstay?
>
> Also, if those variables come from the same patients, and you are
> interested in the difference between the variables, it would be
> helpful to look at the difference for each patient (i.e., durofstay
> MINUS medstable), in order to free the comparison of differences among
> patients.
>
> If you had a something that resembles a boxplot, why would you want
> mean instead of median and, especially, SD instead of the quartiles?
> How skewed are the variables, especially durofstay?
>
> David Hoaglin
>
>
>> I have two variables
>> 1) medstable (days after a patient achieves medical stability, in days)
>> 2) durofstay    (duration of hospital stay; in days)
>>
>> now I wanna plot these two variables with mean and SD, so that I can see the differences of both.
>> How can I do this?
>
> *
> *   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/
```