全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
6510 6
2010-12-20
在SAS里可以画出Bland-Altman的图么?如题
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-12-21 11:33:20
Step 1: Calculate the differences and averages. (Actually the differences are used in the plot of identity above) using this code:
DATA BA;
input large mini;
diff=large-mini;
avg=(large+mini)/2;
datalines;
… data follow…

Step 2: Specify values for the x and y axes for the plot, and this is done with macro variables in the following code:

%let minx=100;%let maxx=700;%let tickx=50;
The “tick” variable specifies how often ticks will appear on the axis. For the X axis the minimum and maximum should reflect values that fully encompass the values of the original data (mini and large in this case.)


Step 3: Create necessary information to produce the mean line at 0 using the information in the “anno” data set shown below:
data anno;
   function='move'; xsys='1'; ysys='1'; x=0; y=0; output;
   function='draw'; xsys='1'; ysys='1'; color='red'; x=100; y=100; size=2;

output;

run;
Step 4: The plot of identity is produced using this code (using calculated upper and lower bound previously created.)

symbol1
i=none v=dot c=black height=1;

* X AXIS - HORIZONTAL;

axis1
length=6.5 in width=1


value=(font="Arial"
h=1) order=&minx to &maxx by &tickx;

* YAXIS - VERTICAL;

axis2
length=4.5 in width=1


value=(font="Arial"
h=1) order=&minx to &maxx by &tickx;

footnote ;

proc
gplot
data=PERF;

plot large*mini /
haxis=axis1 vaxis=axis2

vref= (&blower &bupper &bmeandiff) cvref=red;

run;
附件列表

bt-plot.rar

大小:871 Bytes

 马上下载

本附件包括:

  • bt-plot.sas

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-3-4 11:05:35
正在学习。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-8-20 14:38:24
如何给这几个线加上label或图例说明呢?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-7-25 15:18:27
在系统自带的画图程序里再二次操作吧
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-8-26 09:50:05
做不出来,好像程序有点小问题
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群