Statalist


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

Re: st: Graphics question


From   Swati Tyagi <[email protected]>
To   [email protected]
Subject   Re: st: Graphics question
Date   Thu, 22 May 2008 06:07:46 -0700 (PDT)

Dear Maarten,
Thank you very much. I have not used centile command until now. I will definitely try it out.
Thanks.
Best regards,
Swati Misra.


----- Original Message ----
From: Maarten buis <[email protected]>
To: [email protected]
Sent: Thursday, May 22, 2008 12:50:17 AM
Subject: Re: st: Graphics question

--- Swati Tyagi <[email protected]> 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/



      

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