[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Maarten buis <maartenbuis@yahoo.co.uk> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Graphics question |

Date |
Thu, 22 May 2008 06:50:17 +0100 (BST) |

--- Swati Tyagi <styagi15@yahoo.com> wrote: > I have a dataset of 1000 bootstrapped replicates and have > constructed a 2 way scatterplot with "cost" variable on y-axis and > "effect" data on x-axis and wish to label the 25th and 975th readings > of the x-axis variable with values on the scatterplot. You can get these values with the -centile- command, see -help centile-, which will also store these values in r(c_1), r(c_2), etc, depending on how many centiles you asked for. You can then use these, for instance in the -xline()- option, which I think makes more sense than adding them as data points, because these values only contain information on x, while an data point also implies information on the y-value. *----------------- begin example ----------------- sysuse auto, clear centile trunk, c(2.5 97.5) scatter weight trunk, xline(`r(c_1)' `r(c_2)') *----------------- end example ------------------- (For more on how to use examples I sent to the Statalist, see http://home.fsw.vu.nl/m.buis/stata/exampleFAQ.html ) Hope this helps, Maarten ----------------------------------------- Maarten L. Buis Department of Social Research Methodology Vrije Universiteit Amsterdam Boelelaan 1081 1081 HV Amsterdam The Netherlands visiting address: Buitenveldertselaan 3 (Metropolitan), room Z434 +31 20 5986715 http://home.fsw.vu.nl/m.buis/ ----------------------------------------- __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html * * 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/

**References**:**st: Graphics question***From:*Swati Tyagi <styagi15@yahoo.com>

- Prev by Date:
**Re: st: difference-in-means for xt data** - Next by Date:
**Re: st: estout and stats option** - Previous by thread:
**Re: st: Graphics question** - Next by thread:
**Re: st: Graphics question** - Index(es):

© Copyright 1996–2014 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |