X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Foutput%2Ftables.at;h=5eaaf4cf3eec7b3d76acb01e7edf041f1b16ab4d;hb=refs%2Fheads%2Fpivot-outer-borders;hp=10b321a4e246788d4a72591e73c7c8159334e3e5;hpb=0df9cdd3df66caf4353128feff3008289cda8115;p=pspp diff --git a/tests/output/tables.at b/tests/output/tables.at index 10b321a4e2..5eaaf4cf3e 100644 --- a/tests/output/tables.at +++ b/tests/output/tables.at @@ -1,6 +1,22 @@ +dnl PSPP - a program for statistical analysis. +dnl Copyright (C) 2017 Free Software Foundation, Inc. +dnl +dnl This program is free software: you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation, either version 3 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program. If not, see . +dnl AT_BANNER([output -- tables]) -AT_SETUP([precision]) +AT_SETUP([OUTPUT precision]) AT_DATA([prec.sps], [[ data list notable list /A * B *. @@ -12,16 +28,16 @@ begin data. 3.0 6.0 end data. -OUTPUT MODIFY - /SELECT TABLES - /TABLECELLS SELECT = [ SIGNIFICANCE ] +OUTPUT MODIFY + /SELECT TABLES + /TABLECELLS SELECT = [ SIGNIFICANCE ] FORMAT = F.3. t-test /PAIRS a with b (PAIRED). -OUTPUT MODIFY - /SELECT TABLES - /TABLECELLS SELECT = [ SIGNIFICANCE ] +OUTPUT MODIFY + /SELECT TABLES + /TABLECELLS SELECT = [ SIGNIFICANCE ] FORMAT = F12.5. t-test /PAIRS a with b (PAIRED). @@ -30,34 +46,58 @@ t-test /PAIRS a with b (PAIRED). AT_CHECK([pspp -O format=csv prec.sps], [0], [dnl Table: Paired Sample Statistics -,,Mean,N,Std. Deviation,S.E. Mean -Pair 1,A,2.00,5,.71,.32 -,B,4.00,5,1.54,.69 +,,N,Mean,Std. Deviation,S.E. Mean +Pair 1,A,5,2.00,.71,.32 +,B,5,4.00,1.54,.69 Table: Paired Samples Correlations ,,N,Correlation,Sig. -Pair 1,A & B,5,.92,.028 +Pair 1,A & B,5,.918,.028 Table: Paired Samples Test -,,Paired Differences,,,,,,, -,,,,,95% Confidence Interval of the Difference,,,, -,,Mean,Std. Deviation,Std. Error Mean,Lower,Upper,t,df,Sig. (2-tailed) +,,Paired Differences,,,,,t,df,Sig. (2-tailed) +,,Mean,Std. Deviation,S.E. Mean,95% Confidence Interval of the Difference,,,, +,,,,,Lower,Upper,,, Pair 1,A - B,-2.00,.94,.42,-3.16,-.84,-4.78,4,.009 Table: Paired Sample Statistics -,,Mean,N,Std. Deviation,S.E. Mean -Pair 1,A,2.00,5,.71,.32 -,B,4.00,5,1.54,.69 +,,N,Mean,Std. Deviation,S.E. Mean +Pair 1,A,5,2.00,.71,.32 +,B,5,4.00,1.54,.69 Table: Paired Samples Correlations ,,N,Correlation,Sig. -Pair 1,A & B,5,.92,.02801 +Pair 1,A & B,5,.918,.02801 Table: Paired Samples Test -,,Paired Differences,,,,,,, -,,,,,95% Confidence Interval of the Difference,,,, -,,Mean,Std. Deviation,Std. Error Mean,Lower,Upper,t,df,Sig. (2-tailed) +,,Paired Differences,,,,,t,df,Sig. (2-tailed) +,,Mean,Std. Deviation,S.E. Mean,95% Confidence Interval of the Difference,,,, +,,,,,Lower,Upper,,, Pair 1,A - B,-2.00,.94,.42,-3.16,-.84,-4.78,4,.00877 ]) AT_CLEANUP + + + + +AT_SETUP([OUTPUT crash]) + +AT_DATA([prec.sps], [[ +data list notable list /A * B *. +begin data. +2.0 3.0 +1.0 2.0 +end data. + +OUTPUT MODIFY + /SELECT TABLES + /TABLECELLS SELECT = [ SIGNIFICANCE ] + "FORMAT = F/1. + +t-test /PAIRS a with b (PAIRED). +]]) + +AT_CHECK([pspp -O format=csv prec.sps], [1], [ignore]) + +AT_CLEANUP