Statalist


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

Re: st: Graphics question


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: Graphics question
Date   Wed, 21 May 2008 18:33:32 -0400

Swati Tyagi <[email protected]>:
It's not totally clear to me what you want, but try:

webuse nhanes2, clear
_pctile wei, nq(200)
loc p025=r(r5)
loc p975=r(r195)
sc hei wei, xli(`p025') xli(`p975')

On Wed, May 21, 2008 at 6:22 PM, Swati Tyagi <[email protected]> wrote:
> Dear Statalist Users,
> I had a question on 2 way scatter plots.
> I have data on cost and screening status of patients from a RCT on colon cancer screening promotion.
> 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.
> I can first use "sort" command for that specific variable to give me ranks . Now I need to tell STATA to identify 24th and 975th readings from these 1000 readings and generate a new variable and later incorporate it in the graph.
> My question is what commands do I use. I assume to use "If and In" commands but can't figure out how to do it.
> Please help me out if possible.
> Thanks,
> Swati Misra.
*
*   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