Changes since 0.8.3.1:
+ * The NPAR TESTS calculation of significance for the RUNS subcommand
+ has been corrected.
+
* Formatting of SYSFILE INFO output was made easier to read.
Changes from 0.8.3 to 0.8.3.1:
z, NULL, RC_OTHER);
tab_double (table, row_headers +i, 7, 0,
- 2.0 * gsl_cdf_ugaussian_P (z), NULL, RC_PVALUE);
+ 2.0 * (1.0 - gsl_cdf_ugaussian_P (z)), NULL, RC_PVALUE);
}
switch ( rt->cp_mode)
Total Cases,486.0000
Number of Runs,12
Z,-20.9931
-Asymp. Sig. (2-tailed),.000
+Asymp. Sig. (2-tailed),2.000
Table: Runs Test
,score
Total Cases,486.0000
Number of Runs,12
Z,-21.0650
-Asymp. Sig. (2-tailed),.000
+Asymp. Sig. (2-tailed),2.000
Table: Runs Test
,score
Total Cases,486.0000
Number of Runs,11
Z,-21.0742
-Asymp. Sig. (2-tailed),.000
+Asymp. Sig. (2-tailed),2.000
])
AT_CLEANUP
+dnl Thanks to Douglas Bonett for providing this test case.
+AT_SETUP([NPAR TESTS Runs (2)])
+AT_DATA([npar-runs.sps], [dnl
+data list notable free /y.
+begin data
+1 1 2 1 2 1 1 2 1 1 1 2 1 2
+end data.
+NPAR TEST /RUNS(1.5) = y.
+])
+
+AT_CHECK([pspp -O format=csv npar-runs.sps], [0], [dnl
+Table: Runs Test
+,y
+Test Value,1.50
+Cases < Test Value,9
+Cases ≥ Test Value,5
+Total Cases,14
+Number of Runs,10
+Z,1.26
+Asymp. Sig. (2-tailed),.206
+])
+AT_CLEANUP
+
+
AT_SETUP([NPAR TESTS Friedman])
AT_DATA([npar-friedman.sps], [dnl
set format F15.4.