1 AT_BANNER([MEANS procedure])
3 AT_SETUP([MEANS simple example])
5 AT_DATA([means-simple.sps], [dnl
8 data list notable list /score * factor *.
38 MEANS TABLES = score BY factor.
41 AT_CHECK([pspp -O format=csv means-simple.sps], [0],
43 Table: Case Processing Summary
45 ,Included,,Excluded,,Total,
46 ,N,Percent,N,Percent,N,Percent
47 score: factor,26,100%,0,0%,26,100%
50 ,factor,Mean,N,Std. Deviation
51 score,1.00000,19.78947,19.00000,4.03566
52 ,2.00000,24.00000,7.00000,5.50757
59 AT_SETUP([MEANS very simple example])
61 AT_DATA([means-vsimple.sps], [dnl
64 data list notable list /score.
75 AT_CHECK([pspp -O format=csv means-vsimple.sps], [0],
77 Table: Case Processing Summary
79 ,Included,,Excluded,,Total,
80 ,N,Percent,N,Percent,N,Percent
81 score: ,4,100%,0,0%,4,100%
84 ,Mean,N,Std. Deviation
85 score,1.50000,4.00000,.57735
93 AT_SETUP([MEANS default missing])
95 AT_DATA([means-dmiss.sps], [dnl
97 data list notable list /a * g1 * g2 *.
116 AT_CHECK([pspp -O format=csv means-dmiss.sps], [0],
118 Table: Case Processing Summary
120 ,Included,,Excluded,,Total,
121 ,N,Percent,N,Percent,N,Percent
122 a: g1 * g2,6,75%,2,25%,8,100%
123 a: a * g2,6,75%,2,25%,8,100%
127 a,1.00,11.00,4.00,1.00
128 ,1.00,21.00,3.00,1.00
129 ,2.00,21.00,6.00,1.00
130 ,2.00,31.00,5.67,3.00
134 a,2.00,31.00,2.00,1.00
135 ,3.00,21.00,3.00,1.00
136 ,4.00,11.00,4.00,1.00
137 ,6.00,21.00,6.00,1.00
138 ,7.00,31.00,7.00,1.00
139 ,8.00,31.00,8.00,1.00
145 AT_SETUP([MEANS linear stats])
147 dnl Slightly more involved example to test the linear statistics
148 AT_DATA([means-linear.sps], [dnl
150 data list notable list /id * group * test1 *
164 add value labels /group 1 "experimental group" 2 "control group".
167 /cells = mean count stddev sum min max range variance kurt skew
172 AT_CHECK([pspp -O format=csv means-linear.sps], [0],
174 Table: Case Processing Summary
176 ,Included,,Excluded,,Total,
177 ,N,Percent,N,Percent,N,Percent
178 test1: group,10,100%,0,0%,10,100%
181 ,group,Mean,N,Std. Deviation,Sum,Min,Max,Range,Variance,Kurtosis,Skewness
182 test1,experimental group,86.2000,5.0000,8.9833,431.0000,75.0000,99.0000,24.0000,80.7000,.2727,.3858
183 ,control group,61.8000,5.0000,10.0598,309.0000,50.0000,71.0000,21.0000,101.2000,-3.0437,-.4830
189 AT_SETUP([MEANS standard errors])
191 AT_DATA([means-stderr.sps], [dnl
193 data list notable list /id * group * test1 *
208 /cells = mean count semean seskew sekurt.
212 AT_CHECK([pspp -O format=csv means-stderr.sps], [0],
214 Table: Case Processing Summary
216 ,Included,,Excluded,,Total,
217 ,N,Percent,N,Percent,N,Percent
218 test1: group,10,100%,0,0%,10,100%
221 ,group,Mean,N,S.E. Mean,S.E. Skew,S.E. Kurt
222 test1,1.0000,83.5000,6.0000,4.2485,.8452,1.7408
223 ,2.0000,59.7500,4.0000,5.1700,1.0142,2.6186
230 AT_SETUP([MEANS harmonic and geometric means])
232 AT_DATA([means-hg.sps], [dnl
234 data list notable list /x * y *.
245 /cells = mean harmonic geometric
250 AT_CHECK([pspp -O format=csv means-hg.sps], [0],
252 Table: Case Processing Summary
254 ,Included,,Excluded,,Total,
255 ,N,Percent,N,Percent,N,Percent
256 x: ,5,100%,0,0%,5,100%
257 y: ,5,100%,0,0%,5,100%
260 ,Mean,Harmonic Mean,Geom. Mean
261 x,3.0000,2.1898,2.6052
262 y,3.0000,3.0000,3.0000
272 AT_SETUP([MEANS all/none/default])
274 dnl Make sure that /CELLS = {ALL,NONE,DEFAULT} work properly
275 AT_DATA([means-stat-keywords.sps], [dnl
279 DATA LIST NOTABLE LIST /score *.
288 MEANS score /CELLS = ALL.
289 MEANS score /CELLS = DEFAULT.
290 MEANS score /CELLS = NONE.
294 AT_CHECK([pspp -O format=csv means-stat-keywords.sps], [0],
296 Table: Case Processing Summary
298 ,Included,,Excluded,,Total,
299 ,N,Percent,N,Percent,N,Percent
300 score: ,5,100%,0,0%,5,100%
303 ,Mean,N,Std. Deviation,S.E. Mean,Sum,Min,Max,Range,Variance,Kurtosis,S.E. Kurt,Skewness,S.E. Skew,First,Last,Harmonic Mean,Geom. Mean
304 score,22.40,5.00,4.62,2.06,112.00,16.00,29.00,13.00,21.30,1.85,2.00,.11,.91,22.00,23.00,21.61,22.01
306 Table: Case Processing Summary
308 ,Included,,Excluded,,Total,
309 ,N,Percent,N,Percent,N,Percent
310 score: ,5,100%,0,0%,5,100%
313 ,Mean,N,Std. Deviation
314 score,22.40,5.00,4.62
316 Table: Case Processing Summary
318 ,Included,,Excluded,,Total,
319 ,N,Percent,N,Percent,N,Percent
320 score: ,5,100%,0,0%,5,100%
332 AT_SETUP([MEANS missing=table ])
334 AT_DATA([means-miss-table.sps], [dnl
335 data list notable list /a * b * g1.
359 AT_CHECK([pspp -O format=csv means-miss-table.sps], [0],
361 Table: Case Processing Summary
363 ,Included,,Excluded,,Total,
364 ,N,Percent,N,Percent,N,Percent
365 a: g1,7,100%,0,0%,7,100%
366 b: g1,6,85.7143%,1,14.2857%,7,100%
375 Table: Case Processing Summary
377 ,Included,,Excluded,,Total,
378 ,N,Percent,N,Percent,N,Percent
379 a: g1,7,100%,0,0%,7,100%
386 Table: Case Processing Summary
388 ,Included,,Excluded,,Total,
389 ,N,Percent,N,Percent,N,Percent
390 a: g1,7,100%,0,0%,7,100%
391 b: g1,6,85.7143%,1,14.2857%,7,100%
400 Table: Case Processing Summary
402 ,Included,,Excluded,,Total,
403 ,N,Percent,N,Percent,N,Percent
404 a: g1,7,100%,0,0%,7,100%