Statalist The Stata Listserver


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

st: RE: graph twoway options


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: graph twoway options
Date   Fri, 12 May 2006 17:17:24 +0100

sort qt 

before the -graph- command should do it. I assume that 
you want a plot of m2001uf_1 versus m2004uf_1. 

Incidentally, I would always plot 2004 results as y versus 
2001 results on x, if that is what is implied here. 

Nick 
[email protected] 

JP Azevedo
 
> I have a quick question regarding the options of the Stata 
> graph command.
> 
> I'm trying to plot a twoway line figure of the data below. 
> However I would
> my points to be sorted according the variable qt.
> Is there anyway to implement this with Stata? I've trying things like
> ,sort(qt) or , order(qt) but it does not work.
> 
> graph twoway (line m2001uf_1 m2004uf_1) 
> 
> 
>      +-----------------------------------+
>      | qt          m2001ed~a   m2004ed~a |
>      |-----------------------------------|
>   1. |        .1   .07338864   .06909037 |
>   2. |        .2   .07135852   .06759267 |
>   3. | .30000001   .07184195   .06804301 |
>   4. | .40000001   .07221921   .06811777 |
>   5. |        .5    .0750649   .07045547 |
>      |-----------------------------------|
>   6. | .60000002   .07870311   .07324056 |
>   7. | .69999999   .08274511   .07661686 |
>   8. | .80000001   .08829671   .08257144 |
>   9. | .89999998   .09520774    .0892437 |
>      +-----------------------------------+

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