统计211

 找回密码
 立即注册

QQ登录

只需一步,快速开始

楼主: linxiuquan001
打印 上一主题 下一主题

多个独立样本两两比较的Nemenyi法检验的SPSS程序(7组与3组)

  [复制链接]
71
发表于 2012-5-11 14:50:15 | 只看该作者
正在学习SPSS,从书上抄下来的例题,但是无法运行,一直在出现各种问题,请问原因是什么?
DATA LIST FREE / BLOCK COND DELUSION.
BEGIN DATA.
1 1 10.5
1        2        10.3
1        3        9.7
1        4        8.8
1        1        9.5
1        2        9.4
1        3        8.8
1        4        8.4
2        1        10.2
2        2        9.8
2        3        9.7
2        4        8.8
2        1        9.8
2        2        9.7
2        3        9.5
2        4        9.0
3        1        10.6
3        2        10.5
3        3        9.7
3        4        9.0
3        1        11.2
3        2        11.2
3        3        10.1
3        4        9.4
4        1        9.5
4        2        9.5
4        3        8.9
4        4        8.9
4        1        9.5
4        2        9.2
4        3        9.0
4        4        9.0
END DATA.
72
发表于 2012-7-1 15:25:36 | 只看该作者
多谢楼主大侠,特意注册致谢!
以后会常来学习。
再谢
73
 楼主| 发表于 2012-7-1 16:12:56 | 只看该作者
依兰 发表于 2012-5-11 14:50
正在学习SPSS,从书上抄下来的例题,但是无法运行,一直在出现各种问题,请问原因是什么?
DATA LIST FREE ...

输入Kruskal-Wallis H 检验的结果
74
 楼主| 发表于 2012-7-1 16:13:43 | 只看该作者
603asd 发表于 2012-7-1 15:25
多谢楼主大侠,特意注册致谢!
以后会常来学习。
再谢

谢谢支持,互相交流
75
发表于 2012-8-2 20:48:24 | 只看该作者
zhenlima 发表于 2011-11-29 11:52
data  list free /Hc r1 r2 r3 r4 r5 N n1 n2 n3 n4 n5.
begin data
46.816  83.69 74.69 70.37 94.59 ...

请问你的这个问题解决了吗?我遇到和你一样的问题:出来的HC是负的 ,P值都是1 我之前H检验时有差异的。
我的编程如下:data list free
/Hc r1 r2 r3 r4 r5 N n1 n2 n3 n4 n5.
begin data
120.269 145.16 233.98 248.56 257.31 367.49 500 100 100 100 100 100
end data.
COMPUTE H=(12*((r1*n1)**2/n1+(r2*n2)**2/n2+(r3*n3)**2/n3)+ (r4*n4)**2/n4+(r5*n5)**2/n5)/(N*(N+1))-3*(N+1).
compute C = H/Hc.
compute x12 = (r1-r2)**2/((N*(N+1)/12)*(1/n1+1/n2)*c).
compute x13 = (r1-r3)**2/((N*(N+1)/12)*(1/n1+1/n3)*c).
compute x14 = (r1-r4)**2/((N*(N+1)/12)*(1/n1+1/n4)*c).
compute x15 = (r1-r5)**2/((N*(N+1)/12)*(1/n1+1/n5)*c).
compute x23 = (r2-r3)**2/((N*(N+1)/12)*(1/n2+1/n3)*c).
compute x24 = (r2-r4)**2/((N*(N+1)/12)*(1/n2+1/n4)*c).
compute x25 = (r2-r5)**2/((N*(N+1)/12)*(1/n2+1/n5)*c).
compute x34 = (r3-r4)**2/((N*(N+1)/12)*(1/n3+1/n4)*c).
compute x35 = (r3-r5)**2/((N*(N+1)/12)*(1/n3+1/n5)*c).
compute x45 = (r4-r5)**2/((N*(N+1)/12)*(1/n4+1/n5)*c).
compute p12 = 1-cdf.chisq(x12,2).
compute p13 = 1-cdf.chisq(x13,2).
compute p14 = 1-cdf.chisq(x14,2).
compute p15 = 1-cdf.chisq(x15,2).
compute p23 = 1-cdf.chisq(x23,2).
compute p24 = 1-cdf.chisq(x24,2).
compute p25 = 1-cdf.chisq(x25,2).
compute p34 = 1-cdf.chisq(x34,2).
compute p35 = 1-cdf.chisq(x35,2).
compute p45 = 1-cdf.chisq(x45,2).
execute.
76
发表于 2012-8-2 20:50:55 | 只看该作者
zhenlima 发表于 2011-11-29 11:52
data  list free /Hc r1 r2 r3 r4 r5 N n1 n2 n3 n4 n5.
begin data
46.816  83.69 74.69 70.37 94.59 ...

请问你的这个问题解决了吗?我遇到和你一样的问题:出来的HC是负的 ,P值都是1 我之前H检验时有差异的。
麻烦你帮一下忙!~
我的编程如下:data list free
/Hc r1 r2 r3 r4 r5 N n1 n2 n3 n4 n5.
begin data
120.269 145.16 233.98 248.56 257.31 367.49 500 100 100 100 100 100
end data.
COMPUTE H=(12*((r1*n1)**2/n1+(r2*n2)**2/n2+(r3*n3)**2/n3)+ (r4*n4)**2/n4+(r5*n5)**2/n5)/(N*(N+1))-3*(N+1).
compute C = H/Hc.
compute x12 = (r1-r2)**2/((N*(N+1)/12)*(1/n1+1/n2)*c).
compute x13 = (r1-r3)**2/((N*(N+1)/12)*(1/n1+1/n3)*c).
compute x14 = (r1-r4)**2/((N*(N+1)/12)*(1/n1+1/n4)*c).
compute x15 = (r1-r5)**2/((N*(N+1)/12)*(1/n1+1/n5)*c).
compute x23 = (r2-r3)**2/((N*(N+1)/12)*(1/n2+1/n3)*c).
compute x24 = (r2-r4)**2/((N*(N+1)/12)*(1/n2+1/n4)*c).
compute x25 = (r2-r5)**2/((N*(N+1)/12)*(1/n2+1/n5)*c).
compute x34 = (r3-r4)**2/((N*(N+1)/12)*(1/n3+1/n4)*c).
compute x35 = (r3-r5)**2/((N*(N+1)/12)*(1/n3+1/n5)*c).
compute x45 = (r4-r5)**2/((N*(N+1)/12)*(1/n4+1/n5)*c).
compute p12 = 1-cdf.chisq(x12,2).
compute p13 = 1-cdf.chisq(x13,2).
compute p14 = 1-cdf.chisq(x14,2).
compute p15 = 1-cdf.chisq(x15,2).
compute p23 = 1-cdf.chisq(x23,2).
compute p24 = 1-cdf.chisq(x24,2).
compute p25 = 1-cdf.chisq(x25,2).
compute p34 = 1-cdf.chisq(x34,2).
compute p35 = 1-cdf.chisq(x35,2).
compute p45 = 1-cdf.chisq(x45,2).
execute.
77
发表于 2013-1-8 21:18:43 | 只看该作者
楼主大人,下面是我的程序,就是跑不出来,我眼拙还没看出问题
data list free/Hc r1 r2 r3  r4 N n1 n2 n3 n4 .
begin data
24.057  1376.27 1285.81 1167.01 1354.03 2631  281 289 463 1598
end data.
compute H=(12*((r1*n1)**2/n1+(r2*n2)**2/n2+(r3*n3)**2/n3)+(r4*n4)**2/n4))/(N*(N+1))-3*(N+1).
compute c=H/Hc.
compute x12=(r1-r2)**2/((N*(N+1)/12)*(1/n1+1/n2)*c).
compute x13=(r1-r3)**2/((N*(N+1)/12)*(1/n1+1/n3)*c).
compute x14=(r1-r4)**2/((N*(N+1)/12)*(1/n1+1/n4)*c).
compute x23=(r2-r3)**2/((N*(N+1)/12)*(1/n2+1/n3)*c).
compute x24=(r2-r4)**2/((N*(N+1)/12)*(1/n2+1/n4)*c).
compute x34=(r3-r4)**2/((N*(N+1)/12)*(1/n3+1/n4)*c).
compute p12=1-cdf.chisq(x12,2).
compute p13=1-cdf.chisq(x13,2).
compute p14=1-cdf.chisq(x14,2).
compute p23=1-cdf.chisq(x23,2).
compute p24=1-cdf.chisq(x24,2).
compute p34=1-cdf.chisq(x34,2).
execute.
就是没有结果。只显示了秩和检验后的几个数值
78
发表于 2013-4-13 19:44:30 | 只看该作者
梅子 发表于 2012-8-2 20:50
请问你的这个问题解决了吗?我遇到和你一样的问题:出来的HC是负的 ,P值都是1 我之前H检验时有差异的。
...

遇到同样的问题啊,看到有人提问还以为有解决,翻了几页都没有看到、、、哪位大侠可以帮帮忙~~~??
data list free
/Hc r1 r2 r3 r4 N n1 n2 n3 n4.
begin data
11.952 69.53 99.92 98.60 118.93 192 33 98 40 21
end data.
COMPUTE H = (12*((r1*n1)**2/n1+(r2*n2)**2/n2+(r3*n3)**2/n3)+(r4*n4)**2/n4)/(N*(N+1))-3*(N+1).
compute C = H/Hc.
compute x12 = (r1-r2)**2/((N*(N+1)/12)*(1/n1+1/n2)*c).
compute x13 = (r1-r3)**2/((N*(N+1)/12)*(1/n1+1/n3)*c).
compute x14 = (r1-r4)**2/((N*(N+1)/12)*(1/n1+1/n4)*c).
compute x23 = (r2-r3)**2/((N*(N+1)/12)*(1/n2+1/n3)*c).
compute x24 = (r2-r4)**2/((N*(N+1)/12)*(1/n2+1/n4)*c).
compute x34 = (r3-r4)**2/((N*(N+1)/12)*(1/n3+1/n4)*c).
compute p12 = 1-cdf.chisq(x12,2).
compute p13 = 1-cdf.chisq(x13,2).
compute p14 = 1-cdf.chisq(x14,2).
compute p23 = 1-cdf.chisq(x23,2).
compute p24 = 1-cdf.chisq(x24,2).
compute p34 = 1-cdf.chisq(x34,2).
execute.
79
发表于 2013-4-14 15:51:01 | 只看该作者
请问,我和前面有好几个童鞋的遇到了同样的问题:Hc是负值,所有的p值都是1.00  请问这个为什么呢?麻烦帮帮忙~~~ 多谢多谢!
data list free
/Hc r1 r2 r3 r4 N n1 n2 n3 n4.
begin data
11.952 69.53 99.92 98.60 118.93 192 33 98 40 21
end data.
COMPUTE H = (12*((r1*n1)**2/n1+(r2*n2)**2/n2+(r3*n3)**2/n3)+(r4*n4)**2/n4)/(N*(N+1))-3*(N+1).
compute C = H/Hc.
compute x12 = (r1-r2)**2/((N*(N+1)/12)*(1/n1+1/n2)*c).
compute x13 = (r1-r3)**2/((N*(N+1)/12)*(1/n1+1/n3)*c).
compute x14 = (r1-r4)**2/((N*(N+1)/12)*(1/n1+1/n4)*c).
compute x23 = (r2-r3)**2/((N*(N+1)/12)*(1/n2+1/n3)*c).
compute x24 = (r2-r4)**2/((N*(N+1)/12)*(1/n2+1/n4)*c).
compute x34 = (r3-r4)**2/((N*(N+1)/12)*(1/n3+1/n4)*c).
compute p12 = 1-cdf.chisq(x12,2).
compute p13 = 1-cdf.chisq(x13,2).
compute p14 = 1-cdf.chisq(x14,2).
compute p23 = 1-cdf.chisq(x23,2).
compute p24 = 1-cdf.chisq(x24,2).
compute p34 = 1-cdf.chisq(x34,2).
execute.
不止这一组数据。。。。
80
发表于 2013-7-20 12:57:19 | 只看该作者
菜鸟表示看不懂
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


免责声明|关于我们|小黑屋|联系我们|赞助我们|统计211 ( 闽ICP备09019626号  

GMT+8, 2025-4-2 11:20 , Processed in 0.088179 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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