统计211

 找回密码
 立即注册

QQ登录

只需一步,快速开始

统计211 门户 查看主题

Nemenyi法检验的SPSS程序求助

发布者: lizimu1987 | 发布时间: 2014-4-8 17:57| 查看数: 14956| 评论数: 2|帖子模式

1统计币
各位大神,能帮我用SPSS程序做Nemenyi法检验嘛?
data list free/Hc r1 r2 r3 r4 N n1 n2 n3 n4.
begin data
13.958 32.33 22.59 12.23 16.83 35 3 11 15 6
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.

为什么p值总是等于1?,求赐教

最新评论

点评 回复 xuelei 发表于 2014-4-15 22:27:02
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).
点评 回复 xuelei 发表于 2014-4-15 22:27:23
这个式子错了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


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

GMT+8, 2025-5-1 09:55 , Processed in 0.085205 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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