楼主: sasmacro
3554 2

[问答] gplot作图如何加标准差 [推广有奖]

  • 0关注
  • 2粉丝

硕士生

31%

还不是VIP/贵宾

-

威望
0
论坛币
150 个
通用积分
8.0601
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
1351 点
帖子
86
精华
0
在线时间
170 小时
注册时间
2010-1-20
最后登录
2025-5-30

楼主
sasmacro 发表于 2011-4-7 16:21:29 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
SAS用gplot作图时,如何对每个时间点加标准差,在SAS里用什么样的程序实现,烦劳给个程序或者例子,谢谢!
二维码

扫码加我 拉你入群

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

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

关键词:gplot plot GPL 标准差 标准差 gplot

沙发
honghejing 发表于 2011-4-7 17:30:01
data anno ;
        retain xsys ysys   '2' ;
        set hema end=last;
        where std>.z;
        length color function $8;
        if tx=1 then color='black';
        else if tx=2 then color='blue';
function='move';x=visday-0.5;y=mean-std;output;
        function='draw';x=visday+0.5;y=mean-std;output;
        function='move';x=visday-0.5;y=mean+std;output;
        function='draw';x=visday+0.5;y=mean+std;output;

        function='move';x=visday;y=mean-std;output;
        function='draw';x=visday;y=mean+std;output;
run;

proc gplot data=hema;
        plot mean*visday=tx/haxis=axis1 vaxis=axis2 legend=legend1 anno=anno;
        title1 f="Times New Roman" c=blue h=2  "Plot of Mean - Hemoglobin";
        footnote1 f=simplex j=l "Protocol" h=1.5  "XYZ/2";
   label visday = "Visit";
run;
quit;

藤椅
lvjinghui 发表于 2011-4-8 13:58:12
data inds;
  set inds0;
     lln=mean-std;
    hln=mean+std;
run;
%annomac;
data anno;
  set inds;
  %DCLANNO;
  %system(2,2,3);
  %line(visday,lln,visday,hln,back,1,0.1);
  %line(visday-0.1,lln,visday+0.1,lln,back,1,0.1);
%line(visday-0.1,hln,visday+0.1,hln,back,1,0.1);
run;

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-16 23:52