X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Froc.at;h=3ac61d01f951f97e5791812a13ebd808c4515f4d;hb=cee6f0eb54144da7034566fa1bcdcee22337ae6a;hp=c1fa369b4496ac8e22b23d45622f427794443d6e;hpb=f790dbda9d498eef9c9c0a49078adbeecf768d56;p=pspp diff --git a/tests/language/stats/roc.at b/tests/language/stats/roc.at index c1fa369b44..3ac61d01f9 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 *. @@ -46,28 +46,28 @@ roc x by a (1) AT_CHECK([pspp -o pspp.csv roc.sps]) AT_CHECK([cat pspp.csv], [0], [dnl Table: Case Summary -,Valid N (listwise), -a,Unweighted,Weighted +a,Valid N (listwise), +,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 +Variable under test,Area,Std. Error,Asymptotic Sig.,Asymp. 99% Confidence Interval, +,,,,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 *. @@ -97,14 +97,14 @@ roc x y by a (1) AT_CHECK([pspp -o pspp.csv roc.sps]) AT_CHECK([cat pspp.csv], [0], [dnl Table: Case Summary -,Valid N (listwise), -a,Unweighted,Weighted +a,Valid N (listwise), +,Unweighted,Weighted 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 +Variable under test,Area,Std. Error,Asymptotic Sig.,Asymp. 95% Confidence Interval, +,,,,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,21 +163,21 @@ 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), -a,Unweighted,Weighted +a,Valid N (listwise), +,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 +Variable under test,Area,Std. Error,Asymptotic Sig.,Asymp. 95% Confidence Interval, +,,,,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.