3 # This program tests that the ONEWAY anova command works OK
5 TEMPDIR=/tmp/pspp-tst-$$
9 # ensure that top_srcdir is absolute
10 cd $top_srcdir; top_srcdir=`pwd`
12 export STAT_CONFIG_PATH=$top_srcdir/config
48 activity="create program"
49 cat > $TEMPDIR/out.stat <<EOF
50 DATA LIST LIST /quality * brand * .
69 VARIABLE LABELS brand 'Manufacturer'.
70 VARIABLE LABELS quality 'Breaking Strain'.
72 VALUE LABELS /brand 1 'Aspeger' 2 'Bloggs' 3 'Charlies'.
76 /STATISTICS descriptives homogeneity
81 if [ $? -ne 0 ] ; then no_result ; fi
84 activity="run program"
85 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
86 if [ $? -ne 0 ] ; then no_result ; fi
88 diff $TEMPDIR/pspp.list - << EOF
89 1.1 DATA LIST. Reading free-form data from the command file.
97 2.1 ONEWAY. Descriptives
98 #===============#========#==#====#==============#==========#=======================#=======#=======#
99 # | # | | | | 95% Confidence | | #
100 # | # | | | +-----------+-----------+ | #
101 # | # N|Mean|Std. Deviation|Std. Error|Lower Bound|Upper Bound|Minimum|Maximum#
102 #===============#========#==#====#==============#==========#===========#===========#=======#=======#
103 #Breaking Strain|Aspeger # 5|2.20| 1.30| .58| .58| 3.82| 1.00| 4.00#
104 # |Bloggs # 5|3.20| 1.30| .58| 1.58| 4.82| 2.00| 5.00#
105 # |Charlies# 5|5.00| 1.58| .71| 3.04| 6.96| 3.00| 7.00#
106 # |Total #15|3.47| 1.77| .46| 2.49| 4.45| 1.00| 7.00#
107 #===============#========#==#====#==============#==========#===========#===========#=======#=======#
109 2.2 ONEWAY. Test of Homogeneity of Variances
110 #===============#================#===#===#============#
111 # #Levene Statistic|df1|df2|Significance#
112 #===============#================#===#===#============#
113 #Breaking Strain# .092| 2| 12| .913#
114 #===============#================#===#===#============#
117 #==============================#==============#==#===========#=====#============#
118 # #Sum of Squares|df|Mean Square| F |Significance#
119 #===============#==============#==============#==#===========#=====#============#
120 #Breaking Strain|Between Groups# 20.13| 2| 10.067|5.119| .025#
121 # |Within Groups # 23.60|12| 1.967| | #
122 # |Total # 43.73|14| | | #
123 #===============#==============#==============#==#===========#=====#============#
125 2.4 ONEWAY. Contrast Coefficients
126 #==========#=======================#
128 # #-------+------+--------#
129 # #Aspeger|Bloggs|Charlies#
130 #========#=#=======#======#========#
131 #Contrast|1# -2| 1| 1#
133 #========#=#=======#======#========#
135 2.5 ONEWAY. Contrast Tests
136 #===============================================#=================#==========#=====#=====#===============#
137 # Contrast#Value of Contrast|Std. Error| t | df |Sig. (2-tailed)#
138 #===============#======================#========#=================#==========#=====#=====#===============#
139 #Breaking Strain|Assume equal variances| 1 # 3.80| 1.536|2.474| 12| .029#
140 # | | 2 # 1.80| .887|2.029| 12| .065#
141 # |Does not assume equal | 1 # 3.80| 1.483|2.562|8.740| .031#
142 # | | 2 # 1.80| .917|1.964|7.720| .086#
143 #===============#======================#========#=================#==========#=====#=====#===============#
146 if [ $? -ne 0 ] ; then fail ; fi