Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Roger B. Newson" <r.newson@imperial.ac.uk> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Plot means with SD |

Date |
Wed, 04 Apr 2012 12:09:28 +0100 |

Best wishes Roger Roger B Newson BSc MSc DPhil Lecturer in Medical Statistics Respiratory Epidemiology and Public Health Group National Heart and Lung Institute Imperial College London Royal Brompton Campus Room 33, Emmanuel Kaye Building 1B Manresa Road London SW3 6LR UNITED KINGDOM Tel: +44 (0)20 7352 8121 ext 3381 Fax: +44 (0)20 7351 8322 Email: r.newson@imperial.ac.uk Web page: http://www.imperial.ac.uk/nhli/r.newson/ Departmental Web page: http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/ Opinions expressed are those of the author, not of the institution. On 04/04/2012 11: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 HoaglinI 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/

**References**:**st: Plot means with SD***From:*Patricia Biedermann <pati.biedermann@gmail.com>

**Re: st: Plot means with SD***From:*David Hoaglin <dchoaglin@gmail.com>

- Prev by Date:
**Re: st: Plot means with SD** - Next by Date:
**st: SSC Activity, March 2012** - Previous by thread:
**Re: st: Plot means with SD** - Next by thread:
**st: mrgraph to include missing observation** - Index(es):