X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Flanguage%2Fstats%2Fnpar.at;h=f92af07ec89ae475e31492f57c439edc8ed42b3c;hb=refs%2Fbuilds%2F20120613000503%2Fpspp;hp=f4cec2edb9ea2eeed120835c4742e365c23adbb1;hpb=1babb2ecc20dcae51f6cc639d39cce197d31dbdc;p=pspp diff --git a/tests/language/stats/npar.at b/tests/language/stats/npar.at index f4cec2edb9..f92af07ec8 100644 --- a/tests/language/stats/npar.at +++ b/tests/language/stats/npar.at @@ -610,9 +610,9 @@ npar tests . ]) AT_CHECK([pspp -o pspp.csv npar.sps]) -dnl Some machines return .313 instead of .312 for the Point Probability +dnl Some machines return .313 instead of .312 dnl (see bug #31611). -AT_CHECK([sed 's/\.313$/.312/' pspp.csv], [0], [dnl +AT_CHECK([sed -e 's/\.313$/.312/' -e 's/^Exact Sig\. (1-tailed),\.313/Exact Sig. (1-tailed),.312/' pspp.csv], [0], [dnl Table: Frequencies ,,N age - height,Negative Differences,3 @@ -672,8 +672,8 @@ AT_CHECK([cat pspp.csv], [0], [dnl Table: Ranks ,gv,N,Mean Rank xscore,timed out,5,4.400 -,handled the ball,4,11.500 ,hit wicket,5,7.400 +,handled the ball,4,11.500 ,Total,14, Table: Test Statistics @@ -776,12 +776,12 @@ AT_CHECK([cat pspp.csv], [0], [dnl Table: Ranks ,gv,N,Mean Rank xscore,timed out,5,4.400 -,handled the ball,4,11.500 ,hit wicket,5,7.400 +,handled the ball,4,11.500 ,Total,14, -yscore,handled the ball,4,11.500 +yscore,hit wicket,5,7.400 +,handled the ball,4,11.500 ,bowled,5,4.400 -,hit wicket,5,7.400 ,Total,14, Table: Test Statistics @@ -1582,4 +1582,46 @@ xx,9,7.000,NaN,1,NaN Years expected,9,7.000,.900,1,.343 ]) -AT_CLEANUP \ No newline at end of file +AT_CLEANUP + + +AT_SETUP([NPAR TESTS Jonckheere-Terpstra]) + +AT_DATA([jt.sps], [dnl +set format = F12.3. +data list notable list /x * g * w *. +begin data. +52 2 2 +58 2 1 +60 2 1 +62 2 1 +58 0 1 +44 2 1 +46 2 1 +14 3 1 +32 2 1 +16 3 1 +56 2 1 +26 3 1 +40 3 2 +50 4 1 +6 5 1 +34 2 3 +36 2 2 +40 2 2 +50 2 1 +end data. + +weight by w. + +npar test /jonckheere-terpstra = x by g (5, 2). +]) + + +AT_CHECK([pspp -O format=csv jt.sps], [0], [dnl +Table: Jonckheere-Terpstra Test +,Number of levels in g,N,Observed J-T Statistic,Mean J-T Statistic,Std. Deviation of J-T Statistic,Std. J-T Statistic,Asymp. Sig. (2-tailed) +x,4,24.000,29.500,65.000,15.902,-2.232,.026 +]) + +AT_CLEANUP