SAS中文论坛
标题:
我是新手,求帮忙
[打印本页]
作者:
shiyiming
时间:
2009-5-21 10:18
标题:
我是新手,求帮忙
我有一组数据
1 12 1 10 1 14 1 16 1 12 1 18
2 8 2 10 2 12 2 14 2 12 2 16
3 14 3 16 3 13 3 16 3 10 3 15
4 16 4 18 4 20 4 16 4 14 4 16
想做duncan比较
以下是我写的程序啊
data anoval;
input variety x @@;
cards;
1 12 1 10 1 14 1 16 1 12 1 18
2 8 2 10 2 12 2 14 2 12 2 16
3 14 3 16 3 13 3 16 3 10 3 15
4 16 4 18 4 20 4 16 4 14 4 16
;
proc anova;
class variety;
model x=variety;
means variety/duncan;
run;
但是总是运行不了啊
说是ERROR: 过程 ANOVA 没有找到。
但是我不知道怎么改啊,所以求帮忙啊,谢谢啊
作者:
shiyiming
时间:
2009-5-21 20:48
标题:
Re: 我是新手,求帮忙
i copy your code to my SAS. there is NO error.
作者:
shiyiming
时间:
2009-5-21 22:10
标题:
Re: 我是新手,求帮忙
帮你运行一下
SAS 系统
The ANOVA Procedure
Class Level Information
Class Levels Values
variety 4 1 2 3 4
Number of Observations Read 24
Number of Observations Used 24
SAS 系统 2009年05月21日 星期四 下午10时07分45秒 2
The ANOVA Procedure
Dependent Variable: x
Sum of
Source DF Squares Mean Square F Value Pr > F
Model 3 67.1666667 22.3888889 3.43 0.0369
Error 20 130.6666667 6.5333333
Corrected Total 23 197.8333333
R-Square Coeff Var Root MSE x Mean
0.339511 18.14939 2.556039 14.08333
Source DF Anova SS Mean Square F Value Pr > F
variety 3 67.16666667 22.38888889 3.43 0.0369
SAS 系统 2009年05月21日 星期四 下午10时07分45秒 3
The ANOVA Procedure
Duncan's Multiple Range Test for x
NOTE: This test controls the Type I comparisonwise error rate, not the experimentwise error rate.
Alpha 0.05
Error Degrees of Freedom 20
Error Mean Square 6.533333
Number of Means 2 3 4
Critical Range 3.078 3.231 3.328
Means with the same letter are not significantly different.
Duncan Grouping Mean N variety
A 16.667 6 4
A
B A 14.000 6 3
B A
B A 13.667 6 1
B
B 12.000 6 2
欢迎光临 SAS中文论坛 (https://mysas.net/forum/)
Powered by Discuz! X3.2