X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Flanguage%2Fstats%2Ft-test.at;h=d03a6ca9d5d34eb7abadd41ffa03b5f296a87bc2;hb=681f6120a7998b83ccd439068d8c4090de10b9b5;hp=80519fab2cc5566b52b73f72f65e1461f25cdce9;hpb=49429d9821d57667afe29f2ead5402fa198a3a96;p=pspp diff --git a/tests/language/stats/t-test.at b/tests/language/stats/t-test.at index 80519fab2c..d03a6ca9d5 100644 --- a/tests/language/stats/t-test.at +++ b/tests/language/stats/t-test.at @@ -1,4 +1,4 @@ -AT_BANNER([T-TEST]) +/AT_BANNER([T-TEST]) AT_SETUP([T-TEST /PAIRS]) AT_DATA([t-test.sps], [dnl @@ -93,7 +93,7 @@ begin data. end data. -t-test /MISSING=analysis /PAIRS a c with b d (PAIRED). +t-test /MISSING=analysis /PAIRS a c with b d (PAIRED) /CRITERIA=CIN(0.95). ]) AT_CHECK([pspp -o missing.csv missing.sps]) AT_CHECK([cat missing.csv], [0], [expout]) @@ -231,10 +231,10 @@ DEP2,F8.0 Table: Group Statistics ,INDEP,N,Mean,Std. Deviation,S.E. Mean -DEP1,1.1,5,2.00,.71,.32 -,2.1,5,4.00,.71,.32 -DEP2,1.1,5,4.00,.71,.32 -,2.1,5,2.00,.71,.32 +DEP1,1.10,5,2.00,.71,.32 +,2.10,5,4.00,.71,.32 +DEP2,1.10,5,4.00,.71,.32 +,2.10,5,2.00,.71,.32 Table: Independent Samples Test ,,Levene's Test for Equality of Variances,,t-test for Equality of Means,,,,,, @@ -285,15 +285,15 @@ DEP,F8.0 Table: Group Statistics ,INDEP,N,Mean,Std. Deviation,S.E. Mean -DEP,>=1.514,11,9.00,3.82,1.15 -,<1.514,11,8.00,2.86,.86 +DEP,≥ 1.51,11,9.00,3.82,1.15 +,< 1.51,11,8.00,2.86,.86 Table: Independent Samples Test ,,Levene's Test for Equality of Variances,,t-test for Equality of Means,,,,,, ,,,,,,,,,95% Confidence Interval of the Difference, ,,F,Sig.,t,df,Sig. (2-tailed),Mean Difference,Std. Error Difference,Lower,Upper -DEP,Equal variances assumed,.17,.68,-.69,20.00,.50,-1.00,1.44,-4.00,2.00 -,Equal variances not assumed,,,-.69,18.54,.50,-1.00,1.44,-4.02,2.02 +DEP,Equal variances assumed,.17,.68,.69,20.00,.50,1.00,1.44,-2.00,4.00 +,Equal variances not assumed,,,.69,18.54,.50,1.00,1.44,-2.02,4.02 ]) AT_CLEANUP @@ -320,10 +320,10 @@ dep2,F8.0 Table: Group Statistics ,indep,N,Mean,Std. Deviation,S.E. Mean -dep1,1,3,2.50,.87,.50 -,2,2,3.25,.35,.25 -dep2,1,3,5.00,1.00,.58 -,2,2,2.00,1.41,1.00 +dep1,1.00,3,2.50,.87,.50 +,2.00,2,3.25,.35,.25 +dep2,1.00,3,5.00,1.00,.58 +,2.00,2,2.00,1.41,1.00 Table: Independent Samples Test ,,Levene's Test for Equality of Variances,,t-test for Equality of Means,,,,,, @@ -381,10 +381,10 @@ dep2,F8.0 Table: Group Statistics ,indep,N,Mean,Std. Deviation,S.E. Mean -dep1,1,3,2.50,.87,.50 -,2,3,3.50,.50,.29 -dep2,1,3,5.00,1.00,.58 -,2,3,2.00,1.00,.58 +dep1,1.00,3,2.50,.87,.50 +,2.00,3,3.50,.50,.29 +dep2,1.00,3,5.00,1.00,.58 +,2.00,3,2.00,1.00,.58 Table: Independent Samples Test ,,Levene's Test for Equality of Variances,,t-test for Equality of Means,,,,,, @@ -576,8 +576,8 @@ x,F8.0 Table: Group Statistics ,ind,N,Mean,Std. Deviation,S.E. Mean -x,1,3,2.50,.87,.50 -,2,3,3.50,.50,.29 +x,1.00,3,2.50,.87,.50 +,2.00,3,3.50,.50,.29 Table: Independent Samples Test ,,Levene's Test for Equality of Variances,,t-test for Equality of Means,,,,,, @@ -626,9 +626,9 @@ T-TEST /testval=2.0 . T-TEST /groups=id(3) . ]) AT_CHECK([pspp -O format=csv t-test.sps], [1], [dnl -t-test.sps:11: error: T-TEST: One or more VARIABLES must be specified. +t-test.sps:11: error: T-TEST: Required subcommand VARIABLES was not specified. -t-test.sps:12: error: T-TEST: One or more VARIABLES must be specified. +t-test.sps:12: error: T-TEST: Required subcommand VARIABLES was not specified. ]) AT_CLEANUP @@ -744,3 +744,23 @@ x,Equal variances assumed,1.13,.33,-2.32,6.00,.06,-.90,.38,-1.83,.03 ]) AT_CLEANUP + + +dnl Tests for a bug assert failed when the group variables were not of either class +AT_SETUP([T-TEST wrong group]) +AT_DATA([t-test-crs.sps], [dnl +data list list /x * g *. +begin data. +1 2 +2 2 +3 2 +4 2 +5 2 +end data. + +t-test /variables = x group=g(1,3). +]) + +AT_CHECK([pspp t-test-crs.sps], [0],[ignore], [ignore]) + +AT_CLEANUP