全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2875 4
2008-03-24
给了三种鸟下的蛋的尺寸大小,让用anova table是测是否这三种蛋的长度的均值是否
相等。然后display the data graphically, and interpret the results.
我截取了部分数据,species 分别代表三种不同的鸟,这样的话如果用图来表示出从
anova table得到的结果呢?thanks
Obs LENGTH SPECIES
1     22         1
2     23.9       1
3     20.9       1
4     23.8       1
27   22         2
28   22.1       2
29   21.1       2
30   23         2
31   19.8       3
32   22.1       3
33   21.5       3
二维码

扫码加我 拉你入群

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

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

全部回复
2008-3-24 23:35:00
楼上再说什么?
二维码

扫码加我 拉你入群

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

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

2008-4-2 17:22:00
不懂啊
二维码

扫码加我 拉你入群

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

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

2008-4-2 19:33:00

data a;
input obs Length species$@@;
drop obs;
cards;
1     22         1
2     23.9       1
3     20.9       1
4     23.8       1
27   22         2
28   22.1       2
29   21.1       2
30   23         2
31   19.8       3
32   22.1       3
33   21.5       3
;
run;
proc print data=a;
run;
proc anova data=a;
class species;
model Length=species;
means species/tukey;
run;
proc means mean std data=a noprint;
by species;
output out=b mean=mean std=std;
run;

data anno;
length color function $8;
retain xsys ysys '2' hsys '4' when 'a' color 'red' size 1;
set b;
/* Lower tick */
function='move'; xsys='2'; ysys='2'; midpoint=species; y=mean-std; output;
function='draw'; xsys='7'; ysys='2'; x=-2; y=mean-std;  output;
function='draw'; xsys='7'; ysys='2'; x=+4; y=mean-std;  output;

/* Upper tick */
function='move'; xsys='2'; ysys='2'; midpoint=species; y=mean+std; output;
function='draw'; xsys='7'; ysys='2'; x=-2; y=mean+std;  output;
function='draw'; xsys='7'; ysys='2'; x=+4; y=mean+std;  output;

/* Join upper and lower */
function='move'; xsys='2'; ysys='2'; midpoint=species; y=mean-std;  output;
function='draw'; xsys='2'; ysys='2'; midpoint=species; y=mean+std;  output;

run;

pattern1 v=empty c=blue;
axis1 order=(0 to 30 by 2);
title1 ' One Std of Mean';
proc gchart data=a;
vbar species/ anno=anno raxis=axis1 type=mean sumvar=Length;
run;
quit;

二维码

扫码加我 拉你入群

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

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

2008-4-3 21:32:00
sas    高手
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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