SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 668|回复: 2
打印 上一主题 下一主题

我是新手,求帮忙

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2009-5-21 10:18:32 | 只看该作者

我是新手,求帮忙

我有一组数据
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 没有找到。
但是我不知道怎么改啊,所以求帮忙啊,谢谢啊
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2009-5-21 20:48:01 | 只看该作者

Re: 我是新手,求帮忙

i copy your code to my SAS. there is NO error.
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
板凳
 楼主| 发表于 2009-5-21 22:10:35 | 只看该作者

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
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2026-2-5 17:40 , Processed in 0.070176 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表