Fixed bug 23567. Added accessor functions to get/set means and standard deviations...
[pspp-builds.git] / tests / command / regression.sh
index f213120fd19c740d327c0a77a71adbd4802276ce..db33445e65e75ffec91960868e64ee3d7e099291 100755 (executable)
@@ -71,13 +71,14 @@ begin data
 -0.06108490  8.838262 -29.25689
  0.56154863  6.200189 -18.58219
 end data
-regression /variables=v0 v1 v2 /statistics defaults /dependent=v2 /method=enter.
+regression /variables=v0 v1 v2 /statistics defaults /dependent=v2 /method=enter /save=pred resid.
+list.
 EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="run program"
-$SUPERVISOR $PSPP -o raw-ascii $TESTFILE
+$SUPERVISOR $PSPP --testing-mode $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
@@ -105,14 +106,26 @@ diff -b  $TEMPDIR/pspp.list - << EOF
 #        |Total     #        215.26| 9|           |      |            #
 #========#==========#==============#==#===========#======#============#
 2.3 REGRESSION.  Coefficients
-#===================#=====#==========#====#======#============#
-#                   #  B  |Std. Error|Beta|   t  |Significance#
-#========#==========#=====#==========#====#======#============#
-#        |(Constant)# 2.19|      2.36| .45|   .93|         .52#
-#        |    v0    # 1.81|      1.05| .54|  1.72|         .34#
-#        |    v1    #-3.43|       .33| .00|-10.33|         .06#
-#        |          #     |          |    |      |            #
-#========#==========#=====#==========#====#======#============#
+#===================#=====#==========#=====#======#============#
+#                   #  B  |Std. Error| Beta|   t  |Significance#
+#========#==========#=====#==========#=====#======#============#
+#        |(Constant)# 2.19|      2.36|  .00|   .93|         .52#
+#        |    v0    # 1.81|      1.05|  .17|  1.72|         .12#
+#        |    v1    #-3.43|       .33|-1.03|-10.33|         .00#
+#        |          #     |          |     |      |            #
+#========#==========#=====#==========#=====#======#============#
+      v0       v1       v2     RES1    PRED1
+-------- -------- -------- -------- --------
+     .65     7.74   -23.98     -.84   -23.13 
+    -.13     6.14   -19.64     -.54   -19.10 
+     .35     7.65   -25.27    -1.87   -23.40 
+     .69     6.13   -16.57      .97   -17.54 
+    -.07     8.25   -25.80      .40   -26.20 
+    -.34     6.03   -17.57     1.53   -19.10 
+     .76     9.83   -28.36     1.77   -30.13 
+    -.47     5.34   -16.80      .18   -16.97 
+    -.06     8.84   -29.26    -1.05   -28.21 
+     .56     6.20   -18.58     -.54   -18.04 
 EOF
 if [ $? -ne 0 ] ; then fail ; fi