3 # This program tests that the ONEWAY anova command works OK
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
8 # ensure that top_builddir are absolute
9 if [ -z "$top_builddir" ] ; then top_builddir=. ; fi
10 if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi
11 top_builddir=`cd $top_builddir; pwd`
12 PSPP=$top_builddir/src/ui/terminal/pspp
14 # ensure that top_srcdir is absolute
15 top_srcdir=`cd $top_srcdir; pwd`
17 STAT_CONFIG_PATH=$top_srcdir/config
18 export STAT_CONFIG_PATH
23 if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then
24 echo Not cleaning $TEMPDIR;
59 activity="create program"
61 DATA LIST LIST /QUALITY * BRAND * .
80 VARIABLE LABELS brand 'Manufacturer'.
81 VARIABLE LABELS quality 'Breaking Strain'.
83 VALUE LABELS /brand 1 'Aspeger' 2 'Bloggs' 3 'Charlies'.
87 /STATISTICS descriptives homogeneity
92 if [ $? -ne 0 ] ; then no_result ; fi
95 activity="run program"
96 $SUPERVISOR $PSPP -o pspp.csv $TESTFILE
97 if [ $? -ne 0 ] ; then no_result ; fi
99 diff -c $TEMPDIR/pspp.csv - << EOF
100 Table: Reading free-form data from INLINE.
106 ,,,,,,95% Confidence Interval for Mean,,,
107 ,,N,Mean,Std. Deviation,Std. Error,Lower Bound,Upper Bound,Minimum,Maximum
108 Breaking Strain,Aspeger,5,2.20,1.30,.58,.58,3.82,1.00,4.00
109 ,Bloggs,5,3.20,1.30,.58,1.58,4.82,2.00,5.00
110 ,Charlies,5,5.00,1.58,.71,3.04,6.96,3.00,7.00
111 ,Total,15,3.47,1.77,.46,2.49,4.45,1.00,7.00
113 Table: Test of Homogeneity of Variances
114 ,Levene Statistic,df1,df2,Significance
115 Breaking Strain,.09,2,12,.91
118 ,,Sum of Squares,df,Mean Square,F,Significance
119 Breaking Strain,Between Groups,20.13,2,10.07,5.12,.02
120 ,Within Groups,23.60,12,1.97,,
123 Table: Contrast Coefficients
125 ,,Aspeger,Bloggs,Charlies
129 Table: Contrast Tests
130 ,,Contrast,Value of Contrast,Std. Error,t,df,Sig. (2-tailed)
131 Breaking Strain,Assume equal variances,1,3.80,1.54,2.47,12,.03
132 ,,2,1.80,.89,2.03,12,.07
133 ,Does not assume equal,1,3.80,1.48,2.56,8.74,.03
134 ,,2,1.80,.92,1.96,7.72,.09
136 if [ $? -ne 0 ] ; then fail ; fi