X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Froc.at;h=1eacaacef0f0a87c46c8272c4ecb9c70b46a024c;hb=facb4a1ad3c9e8b2cdf55824680eed2afb91aebe;hp=c1fa369b4496ac8e22b23d45622f427794443d6e;hpb=8180c5dd1591446174c0753ee960921786113403;p=pspp diff --git a/tests/language/stats/roc.at b/tests/language/stats/roc.at index c1fa369b44..1eacaacef0 100644 --- a/tests/language/stats/roc.at +++ b/tests/language/stats/roc.at @@ -1,22 +1,22 @@ dnl PSPP - a program for statistical analysis. dnl Copyright (C) 2017 Free Software Foundation, Inc. -dnl +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 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 dnl You should have received a copy of the GNU General Public License dnl along with this program. If not, see . dnl AT_BANNER([ROC]) -AT_SETUP([ROC, free distribution]) +AT_SETUP([ROC free distribution]) AT_DATA([roc.sps], [dnl set format F10.3. data list notable list /x * y * w * a *. @@ -51,23 +51,23 @@ a,Unweighted,Weighted Positive,5,50.000 Negative,5,50.000 -Table: Area Under the Curve (x) -,,,Asymp. 99% Confidence Interval, -Area,Std. Error,Asymptotic Sig.,Lower Bound,Upper Bound -.910,.030,.000,.839,.981 - -Table: Coordinates of the Curve (x) -Positive if greater than or equal to,Sensitivity,1 - Specificity -.000,1.000,1.000 -1.500,.960,.440 -2.500,.880,.160 -3.500,.680,.060 -4.500,.400,.020 -6.000,.000,.000 +Table: Area Under the Curve +,Area,Std. Error,Asymptotic Sig.,Asymp. 99% Confidence Interval, +Variable under test,,,,Lower Bound,Upper Bound +x,.910,.030,.000,.839,.981 + +Table: Coordinates of the Curve +Test variable,Positive if greater than or equal to,Sensitivity,1 - Specificity +x,.000,1.000,1.000 +,1.500,.960,.440 +,2.500,.880,.160 +,3.500,.680,.060 +,4.500,.400,.020 +,6.000,.000,.000 ]) AT_CLEANUP -AT_SETUP([ROC, negative exponential distribution]) +AT_SETUP([ROC negative exponential distribution]) AT_DATA([roc.sps], [dnl set format F10.3. data list notable list /x * y * w * a *. @@ -103,8 +103,8 @@ Positive,5,50.000 Negative,5,50.000 Table: Area Under the Curve -,,,,Asymp. 95% Confidence Interval, -Variable under test,Area,Std. Error,Asymptotic Sig.,Lower Bound,Upper Bound +,Area,Std. Error,Asymptotic Sig.,Asymp. 95% Confidence Interval, +Variable under test,,,,Lower Bound,Upper Bound x,.910,.030,.000,.860,.960 y,.697,.052,.001,.611,.783 @@ -126,7 +126,7 @@ y,.000,1.000,1.000 ]) AT_CLEANUP -AT_SETUP([ROC, with anomaly]) +AT_SETUP([ROC with anomaly]) AT_DATA([roc.sps], [dnl set format F10.3. data list notable list /x * a * comment (a20). @@ -163,10 +163,10 @@ end data. roc x by a (1) /plot = none - print = se + print = se . ]) -AT_CHECK([pspp -o pspp.csv roc.sps]) +AT_CHECK([pspp -o pspp.csv -o pspp.txt roc.sps]) AT_CHECK([cat pspp.csv], [0], [dnl Table: Case Summary ,Valid N (listwise), @@ -174,10 +174,10 @@ a,Unweighted,Weighted Positive,14,14.000 Negative,14,14.000 -Table: Area Under the Curve (x) -,,,Asymp. 95% Confidence Interval, -Area,Std. Error,Asymptotic Sig.,Lower Bound,Upper Bound -.490,.111,.927,.307,.673 +Table: Area Under the Curve +,Area,Std. Error,Asymptotic Sig.,Asymp. 95% Confidence Interval, +Variable under test,,,,Lower Bound,Upper Bound +x,.490,.111,.927,.307,.673 ]) AT_CLEANUP @@ -205,7 +205,7 @@ AT_SETUP([ROC crash on invalid syntax]) AT_DATA([roc.sps], [dnl data list notable list /x * y * a *. bggin data. -1 1 2 +1 1 2 1 2 28 end data.