Rewrite PSPP output engine.
[pspp-builds.git] / tests / command / reliability.sh
index 0bfa7336b23e7b43ca71070b3debf8c3a6e920af..c93440421a613d4ede40d2a7d39e3d3f6dd08eaa 100755 (executable)
@@ -249,95 +249,68 @@ $SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare output"
-diff pspp.list - << EOF
+diff -c pspp.csv - << EOF
 Scale: Everything
 
-1.1 RELIABILITY.  Case Processing Summary
-#==============#===#=====#
-#              # N |  %  #
-#==============#===#=====#
-#Cases Valid   #131| 92.9#
-#      Excluded# 10|  7.1#
-#      Total   #141|100.0#
-#==============#===#=====#
-
-1.2 RELIABILITY.  Reliability Statistics
-#================#==========#
-#Cronbach's Alpha#N of items#
-#================#==========#
-#            .748#         4#
-#================#==========#
+Table: Case Processing Summary
+,,N,%
+Cases,Valid,131,92.91
+,Excluded,10,7.09
+,Total,141,100.00
+
+Table: Reliability Statistics
+Cronbach's Alpha,N of items
+.75,4
 
 Scale: Nothing
 
-2.1 RELIABILITY.  Case Processing Summary
-#==============#===#=====#
-#              # N |  %  #
-#==============#===#=====#
-#Cases Valid   #131| 92.9#
-#      Excluded# 10|  7.1#
-#      Total   #141|100.0#
-#==============#===#=====#
-
-2.2 RELIABILITY.  Reliability Statistics
-#==========================================================#====#
-#Cronbach's Alpha               Part 1           Value     #.550#
-#                                                N of Items#   2#
-#                               Part 2           Value     #.631#
-#                                                N of Items#   2#
-#                               Total N of Items           #   4#
-#Correlation Between Forms                                 #.606#
-#Spearman-Brown Coefficient     Equal Length               #.755#
-#                               Unequal Length             #.755#
-#Guttman Split-Half Coefficient                            #.754#
-#==========================================================#====#
+Table: Case Processing Summary
+,,N,%
+Cases,Valid,131,92.91
+,Excluded,10,7.09
+,Total,141,100.00
+
+Table: Reliability Statistics
+Cronbach's Alpha,Part 1,Value,.55
+,,N of Items,2
+,Part 2,Value,.63
+,,N of Items,2
+,Total N of Items,,4
+Correlation Between Forms,,,.61
+Spearman-Brown Coefficient,Equal Length,,.75
+,Unequal Length,,.75
+Guttman Split-Half Coefficient,,,.75
 
 Scale: Totals
 
-3.1 RELIABILITY.  Case Processing Summary
-#==============#===#=====#
-#              # N |  %  #
-#==============#===#=====#
-#Cases Valid   #131| 92.9#
-#      Excluded# 10|  7.1#
-#      Total   #141|100.0#
-#==============#===#=====#
-
-3.2 RELIABILITY.  Reliability Statistics
-#================#==========#
-#Cronbach's Alpha#N of items#
-#================#==========#
-#            .748#         4#
-#================#==========#
-
-3.3 RELIABILITY.  Item-Total Statistics
-#=====#==========================#==============================#================================#================================#
-#     #Scale Mean if Item Deleted|Scale Variance if Item Deleted|Corrected Item-Total Correlation|Cronbach's Alpha if Item Deleted#
-#=====#==========================#==============================#================================#================================#
-#var6 #                    15.969|                         8.430|                            .513|                            .705#
-#var8 #                    16.565|                         7.863|                            .530|                            .698#
-#var15#                    16.473|                         8.451|                            .558|                            .682#
-#var17#                    16.603|                         7.995|                            .570|                            .673#
-#=====#==========================#==============================#================================#================================#
+Table: Case Processing Summary
+,,N,%
+Cases,Valid,131,92.91
+,Excluded,10,7.09
+,Total,141,100.00
+
+Table: Reliability Statistics
+Cronbach's Alpha,N of items
+.75,4
+
+Table: Item-Total Statistics
+,Scale Mean if Item Deleted,Scale Variance if Item Deleted,Corrected Item-Total Correlation,Cronbach's Alpha if Item Deleted
+var6,15.97,8.43,.51,.71
+var8,16.56,7.86,.53,.70
+var15,16.47,8.45,.56,.68
+var17,16.60,8.00,.57,.67
 
 Scale: ANY
 
-4.1 RELIABILITY.  Case Processing Summary
-#==============#===#=====#
-#              # N |  %  #
-#==============#===#=====#
-#Cases Valid   #131| 92.9#
-#      Excluded# 10|  7.1#
-#      Total   #141|100.0#
-#==============#===#=====#
-
-4.2 RELIABILITY.  Reliability Statistics
-#================#==========#
-#Cronbach's Alpha#N of items#
-#================#==========#
-#            .748#         4#
-#================#==========#
+Table: Case Processing Summary
+,,N,%
+Cases,Valid,131,92.91
+,Excluded,10,7.09
+,Total,141,100.00
 
+Table: Reliability Statistics
+Cronbach's Alpha,N of items
+.75,4
 EOF
 if [ $? -ne 0 ] ; then fail ; fi