Hi,
I am trying to use the data below to graph two variables (Payout1 and payout2). I am using the following command:
graph twoway line Payout1 Payout2 Payoutratio
However, I need X axis values (Payoutratio) in descending order. Can you please advise on how to do this?
Thank you.
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
I am trying to use the data below to graph two variables (Payout1 and payout2). I am using the following command:
graph twoway line Payout1 Payout2 Payoutratio
However, I need X axis values (Payoutratio) in descending order. Can you please advise on how to do this?
Thank you.
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input double(Payoutratio Payout1 Payout2)
3 4217.6 4217.6
2.9 4217.6 4217.6
2.8 4217.6 4217.6
2.6999999999999997 4217.6 4217.6
2.5999999999999996 4217.6 4217.6
2.4999999999999996 2530.56 1897.92
2.4 2530.56 1897.92
2.3 2530.56 1897.92
2.1999999999999993 2530.56 1897.92
2.099999999999999 2530.56 1897.92
2 2530.56 1897.92
1.9 2530.56 1897.92
1.8 1687.04 1265.2800000000002
1.7 1687.04 1265.2800000000002
1.6 1687.04 1265.2800000000002
1.5 1687.04 1265.2800000000002
1.4 1687.0400000000002 1265.2800000000002
1.3 1687.0400000000002 1265.2800000000002
1.2 843.5200000000001 632.64
1.0999999999999983 843.5200000000001 632.6400000000001
1 843.5200000000001 632.6400000000001
.9 843.5200000000001 632.6400000000001
.8 843.5200000000001 632.6400000000001
.7 843.5200000000001 632.64
.6 0 0
.5 0 0
.4 0 0
.3 0 0
.2 0 0
.1 0 0
end

Comment