X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Freliability.at;h=0d6ea8d2f3f0a1d7e42a6a0cfdf18ecfb3b16826;hb=691a034d7f2139076fa012739dffd40ef5db4a9b;hp=dcae7d517ad5e44e367e70f01a425e293327d846;hpb=412577e8dc5b7bea03d7a3fff5b9cc0325903654;p=pspp diff --git a/tests/language/stats/reliability.at b/tests/language/stats/reliability.at index dcae7d517a..0d6ea8d2f3 100644 --- a/tests/language/stats/reliability.at +++ b/tests/language/stats/reliability.at @@ -1,4 +1,19 @@ -AT_BANNER([RELIABILITY]) +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([RELIABILITY]) AT_SETUP([RELIABILITY]) AT_DATA([reliability.sps], [dnl @@ -175,6 +190,7 @@ RELIABILITY /VARIABLES=var2 var6 var8 var15 var17 var19 /SCALE('Totals') var6 var8 var15 var17 /SUMMARY = total + /STATISTICS = DESCRIPTIVES COVARIANCES . @@ -182,7 +198,9 @@ RELIABILITY /VARIABLES=var6 var8 var15 var17 . ]) -AT_CHECK([pspp -o pspp.csv reliability.sps]) +AT_CHECK([pspp -o pspp.csv reliability.sps], [0], + [reliability.sps:174: warning: RELIABILITY: The STATISTICS subcommand is not yet implemented. No statistics will be produced. +]) AT_CHECK([cat pspp.csv], [0], [dnl Scale: Everything @@ -215,6 +233,8 @@ Spearman-Brown Coefficient,Equal Length,,.75 ,Unequal Length,,.75 Guttman Split-Half Coefficient,,,.75 +reliability.sps:174: warning: RELIABILITY: The STATISTICS subcommand is not yet implemented. No statistics will be produced. + Scale: Totals Table: Case Processing Summary @@ -297,3 +317,35 @@ reliability variables=f01 to f10. AT_CHECK([pspp -O format=csv reliability.sps], [0], []) AT_CLEANUP + + + +dnl This is an example from doc/tutorial.texi +dnl So if the results of this have to be changed in any way, +dnl make sure to update that file. +AT_SETUP([RELIABILITY tutorial example]) +AT_DATA([tut-example.sps], [dnl +get file='hotel.sav'. + +compute v3 = 6 - v3. +compute v5 = 6 - v5. + +reliability variables = v1 v3 v4. +]) + +AT_CHECK([ln -s $top_srcdir/examples/hotel.sav .], [0]) +AT_CHECK([pspp -O format=csv tut-example.sps], [0], [dnl +Scale: ANY + +Table: Case Processing Summary +,,N,% +Cases,Valid,17,100.00 +,Excluded,0,.00 +,Total,17,100.00 + +Table: Reliability Statistics +Cronbach's Alpha,N of Items +.81,3 +]) + +AT_CLEANUP