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

Re: st: A special graph in Stata


From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: A special graph in Stata
Date   Wed, 06 Apr 2005 15:08:29 +0100

At 21:46 05/04/2005, Vangelis wrote:
Dear all,

I would like to ask you whether I can make a graph of a means of one
variable ( y axis) per the bins of another varible ( x axis).
One possibility would be to use Nick Cox's -ciplot- program (downloadable from SSC), which plots means with confidence intervals.

Another possibility would be to generate a dataset (or resultsset) with one observation per value of the X-axis variable and data on means of the Y-variable (with or without confidence limits). This can be done using -statsby-, or possibly by using -xcollapse- (downloadable from SSC). This resultsset can then be loaded into memory and plotted using Stata graphics. To find more about more about Stata resultssets, type

findit resultsset

or

findit enduser

in web-aware Stata, and you will find some downloadable .pdf files on the subject.

I hope this helps.

Roger



--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
Division of Asthma, Allergy and Lung Biology
King's College London

5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]
Website: http://phs.kcl.ac.uk/rogernewson/

Opinions expressed are those of the author, not the institution.

*
* 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