added test for SAVE subcommand
authorJason Stover <jhs@math.gcsu.edu>
Tue, 11 Mar 2008 03:33:07 +0000 (03:33 +0000)
committerJason Stover <jhs@math.gcsu.edu>
Tue, 11 Mar 2008 03:33:07 +0000 (03:33 +0000)
tests/command/regression.sh

index ddb78e1a317e7c2283f906ab3b1d5048eee0fc9d..8d30e07646938e40a852f7768d54b83d545e2ac8 100755 (executable)
@@ -71,7 +71,8 @@ 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
 
@@ -109,10 +110,22 @@ diff -b  $TEMPDIR/pspp.list - << EOF
 #                   #  B  |Std. Error|Beta|   t  |Significance#
 #========#==========#=====#==========#====#======#============#
 #        |(Constant)# 2.19|      2.36| .45|   .93|         .52#
-#        |    v0    # 1.81|      1.05| .54|  1.72|         .13#
+#        |    v0    # 1.81|      1.05| .54|  1.72|         .12#
 #        |    v1    #-3.43|       .33| .00|-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