3 # This program tests that the ONEWAY anova command works OK
4 # when SPLIT FILE is active
6 TEMPDIR=/tmp/pspp-tst-$$
7 TESTFILE=$TEMPDIR/`basename $0`.sps
11 # ensure that top_srcdir is absolute
12 cd $top_srcdir; top_srcdir=`pwd`
14 STAT_CONFIG_PATH=$top_srcdir/config
15 export STAT_CONFIG_PATH
20 if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then
21 echo Not cleaning $TEMPDIR;
56 activity="create program"
58 DATA LIST LIST /QUALITY * BRAND * S *.
77 VARIABLE LABELS brand 'Manufacturer'.
78 VARIABLE LABELS quality 'Breaking Strain'.
80 VALUE LABELS /brand 1 'Aspeger' 2 'Bloggs' 3 'Charlies'.
86 /STATISTICS descriptives homogeneity
91 if [ $? -ne 0 ] ; then no_result ; fi
94 activity="run program"
95 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
96 if [ $? -ne 0 ] ; then no_result ; fi
98 diff -b -B $TEMPDIR/pspp.list - << EOF
99 1.1 DATA LIST. Reading free-form data from the command file.
111 2.1 ONEWAY. Descriptives
112 #===============#=======#=#====#==============#==========#=======================#=======#=======#
113 # | # | | | | 95% Confidence | | #
114 # | # | | | +-----------+-----------+ | #
115 # | #N|Mean|Std. Deviation|Std. Error|Lower Bound|Upper Bound|Minimum|Maximum#
116 #===============#=======#=#====#==============#==========#===========#===========#=======#=======#
117 #Breaking Strain|Aspeger#5|2.20| 1.30| .58| .58| 3.82| 1.00| 4.00#
118 # |Bloggs #2|3.50| 2.12| 1.50| -15.56| 22.56| 2.00| 5.00#
119 # |Total #7|2.57| 1.51| .57| 1.17| 3.97| 1.00| 5.00#
120 #===============#=======#=#====#==============#==========#===========#===========#=======#=======#
122 2.2 ONEWAY. Test of Homogeneity of Variances
123 #===============#================#===#===#============#
124 # #Levene Statistic|df1|df2|Significance#
125 #===============#================#===#===#============#
126 #Breaking Strain# 1.086| 1| 5| .345#
127 #===============#================#===#===#============#
130 #==============================#==============#==#===========#=====#============#
131 # #Sum of Squares|df|Mean Square| F |Significance#
132 #===============#==============#==============#==#===========#=====#============#
133 #Breaking Strain|Between Groups# 2.41| 1| 2.414|1.068| .349#
134 # |Within Groups # 11.30| 5| 2.260| | #
135 # |Total # 13.71| 6| | | #
136 #===============#==============#==============#==#===========#=====#============#
138 2.4 ONEWAY. Contrast Coefficients
139 #==========#==============#
143 #========#=#=======#======#
146 #========#=#=======#======#
148 2.5 ONEWAY. Contrast Tests
149 #===============================================#=================#==========#=====#=====#===============#
150 # Contrast#Value of Contrast|Std. Error| t | df |Sig. (2-tailed)#
151 #===============#======================#========#=================#==========#=====#=====#===============#
152 #Breaking Strain|Assume equal variances| 1 # 2.60| 2.516|1.034| 5| .349#
153 # | | 2 # 1.30| 1.258|1.034| 5| .349#
154 # |Does not assume equal | 1 # 2.60| 3.219| .808|1.318| .539#
155 # | | 2 # 1.30| 1.609| .808|1.318| .539#
156 #===============#======================#========#=================#==========#=====#=====#===============#
161 2.6 ONEWAY. Descriptives
162 #===============#========#=#====#==============#==========#=======================#=======#=======#
163 # | # | | | | 95% Confidence | | #
164 # | # | | | +-----------+-----------+ | #
165 # | #N|Mean|Std. Deviation|Std. Error|Lower Bound|Upper Bound|Minimum|Maximum#
166 #===============#========#=#====#==============#==========#===========#===========#=======#=======#
167 #Breaking Strain|Bloggs #3|3.00| 1.00| .58| .52| 5.48| 2.00| 4.00#
168 # |Charlies#5|5.00| 1.58| .71| 3.04| 6.96| 3.00| 7.00#
169 # |Total #8|4.25| 1.67| .59| 2.85| 5.65| 2.00| 7.00#
170 #===============#========#=#====#==============#==========#===========#===========#=======#=======#
172 2.7 ONEWAY. Test of Homogeneity of Variances
173 #===============#================#===#===#============#
174 # #Levene Statistic|df1|df2|Significance#
175 #===============#================#===#===#============#
176 #Breaking Strain# .923| 1| 6| .374#
177 #===============#================#===#===#============#
180 #==============================#==============#==#===========#=====#============#
181 # #Sum of Squares|df|Mean Square| F |Significance#
182 #===============#==============#==============#==#===========#=====#============#
183 #Breaking Strain|Between Groups# 7.50| 1| 7.500|3.750| .101#
184 # |Within Groups # 12.00| 6| 2.000| | #
185 # |Total # 19.50| 7| | | #
186 #===============#==============#==============#==#===========#=====#============#
188 2.9 ONEWAY. Contrast Coefficients
189 #==========#===============#
193 #========#=#======#========#
196 #========#=#======#========#
198 2.10 ONEWAY. Contrast Tests
199 #===============================================#=================#==========#=====#=====#===============#
200 # Contrast#Value of Contrast|Std. Error| t | df |Sig. (2-tailed)#
201 #===============#======================#========#=================#==========#=====#=====#===============#
202 #Breaking Strain|Assume equal variances| 1 # 4.00| 2.066|1.936| 6| .101#
203 # | | 2 # 2.00| 1.033|1.936| 6| .101#
204 # |Does not assume equal | 1 # 4.00| 1.826|2.191|5.882| .072#
205 # | | 2 # 2.00| .913|2.191|5.882| .072#
206 #===============#======================#========#=================#==========#=====#=====#===============#
209 if [ $? -ne 0 ] ; then fail ; fi