data test;
input y1 x y2;
datalines;
14.77 42 .
10.6888 52 .
13.331 17 .
14.387 65 .
7.588 72 .
11.878 46 .
9.826 77 .
13.261 57 .
12.197 54 .
14.529 65 .
14.058 69 .
13.753 26 .
12.968 58 .
9.573 74 .
10.402 70 .
12.003 70 .
12.351 63 .
16.155 62 .
9.401 49 22.1
11.917 63 .
13.204 46 .
14.0396 46 .
13.961 71 .
11.698 65 .
14.367 62 .
14.658 17 .
12.338 84 .
15.949 26 .
11.912 57 .
14.638 69 .
16.265 29 .
12.286 50 .
13.281 35 .
13.987 32 .
. 22 25.33
;
run;
上面的dataset, 含变量y1, x, y2, 其中y2大多为缺失值,想用y1 和x作一个带有多个quantile的图(99%, 90%, 50%, 10%, 1%), 同时不让y1的数据显示在图中(相当于gplot时symbol statement 中v=none),然后让y2数据的dots显示在图中。目的是看看y2的数据出现在y1和x相关图的什么位置。请高手帮忙,谢谢!
下面是在网上找到的作quantile图的code,只能在SAS9.2上运行,不知道有没有类似code能在SAS9.1上运行。
ods graphics on;
proc quantreg data=test plot=fitplot; *default simplex algorithm ;
y1= x x*x x*x*x
/quantile=0.01 0.1 0.5 0.9 0.99;
run;
ods graphics off;