|
正在学习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. |
|
楼主大人,下面是我的程序,就是跑不出来,我眼拙还没看出问题 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. 就是没有结果。只显示了秩和检验后的几个数值 |
|
遇到同样的问题啊,看到有人提问还以为有解决,翻了几页都没有看到、、、哪位大侠可以帮帮忙~~~?? 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. |
|
请问,我和前面有好几个童鞋的遇到了同样的问题: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. 不止这一组数据。。。。 |
免责声明|关于我们|小黑屋|联系我们|赞助我们|统计211
( 闽ICP备09019626号 )
GMT+8, 2026-11-16 18:22 , Processed in 0.070764 second(s), 26 queries .
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.