楼主: leedx
6502 5

[原创博文] SAS如何绘制误差线图 [推广有奖]

  • 7关注
  • 2粉丝

讲师

68%

还不是VIP/贵宾

-

威望
0
论坛币
1034 个
通用积分
8.4705
学术水平
4 点
热心指数
9 点
信用等级
1 点
经验
4464 点
帖子
612
精华
0
在线时间
435 小时
注册时间
2010-4-29
最后登录
2023-11-29

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
Sas中如何绘制误差线图,我绘制出了折线图,但是不知道怎么把误差条加上去……
二维码

扫码加我 拉你入群

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

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

关键词:不知道 折线图 如何

沙发
honghejing 发表于 2011-7-27 16:17:01 |只看作者 |坛友微信交流群
要定义一个anno data
data anno;
   retain xsys ysys '2';
   set final;
   where se>.z;
   length function $8;
   function='move' ; x=visitn; y=mean-se; output;
   function='draw' ; x=visitn; y=mean+se; output;
run;

使用道具

藤椅
leedx 发表于 2011-7-27 17:11:33 |只看作者 |坛友微信交流群
2# honghejing
非常感谢,可否给一段完成的程序,运行和学习下。

使用道具

板凳
jingju11 发表于 2011-7-27 21:35:42 |只看作者 |坛友微信交流群
1# leedx
Assume having the latest version of SAS. Before 9.22, please ignore the offsetmin/max option in sgplot.
In fact, the key option yerrorlower/upper is quite new as well.
Jingju

  1. proc glm data = sashelp.class;
  2. class sex;
  3. model height =sex|age|age;
  4. output out =out p =p  lcl =lcl uclm =ucl;
  5. run; quit;
  6. proc sort data =out; by sex age; run;
  7. proc sgplot data=out;
  8. scatter x=age y=p / group=sex yerrorlower=lcl yerrorupper=ucl markerattrs=(symbol=circlefilled) name="s";
  9. series  x=age y=p / group=sex lineattrs=(pattern=solid);
  10. keylegend "s" / title="Sex";
  11. xaxis label="ages" offsetmax =0.1 offsetmin =0.1;
  12. yaxis label="predicted height";
  13. run; quit;
复制代码
jingju.doc (78.75 KB)

使用道具

报纸
leedx 发表于 2011-7-27 22:36:52 |只看作者 |坛友微信交流群
4# jingju11
非常感谢~~~

使用道具

地板
shenshen0455 发表于 2011-12-29 10:29:49 |只看作者 |坛友微信交流群
学习了
aabbcc

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-27 23:00