GLM: Allow +/- .001 for Corrected Total Type III Sum of Squares.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 13 Jul 2011 05:06:37 +0000 (22:06 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 13 Jul 2011 05:06:37 +0000 (22:06 -0700)
Jeremy Lavergne <jeremy@lavergne.gotdns.org> reported that on
Mac OS X this value is calculated as 329.628 instead of
329.627.  John Darrington said that he's seen the same on
GNU/Linux depending on compiler optimization flags.

tests/language/stats/glm.at

index 60dc903ece9d4448c0abd8117522ea7a3d16411b..68caf606d892f6e6fcfac240b83236fdc68e7884 100644 (file)
@@ -56,8 +56,8 @@ glm y by   b a c
   .
 ])
 
-AT_CHECK([pspp -O format=csv latin.sps], [0], [dnl
-Table: Tests of Between-Subjects Effects
+AT_CHECK([pspp -O format=csv latin.sps | sed 's/329.62[[678]]/329.62/'], [0],
+  [Table: Tests of Between-Subjects Effects
 Source,Type III Sum of Squares,df,Mean Square,F,Sig.
 Corrected Model,263.064,15,17.538,5.269,.000
 Intercept,815.103,1,815.103,244.910,.000
@@ -66,7 +66,7 @@ Factor B,28.599,5,5.720,1.719,.176
 Factor C,155.596,5,31.119,9.350,.000
 Error,66.563,20,3.328,,
 Total,1144.730,36,,,
-Corrected Total,329.627,35,,,
+Corrected Total,329.62,35,,,
 ])
 
 AT_CLEANUP