Add OUTPUT MODIFY command
[pspp] / tests / output / tables.at
1 AT_BANNER([output -- tables])
2
3 AT_SETUP([precision])
4
5 AT_DATA([prec.sps], [[
6 data list notable list /A * B *.
7 begin data.
8 2.0 3.0
9 1.0 2.0
10 2.0 4.5
11 2.0 4.5
12 3.0 6.0
13 end data.
14
15 OUTPUT MODIFY 
16        /SELECT TABLES 
17        /TABLECELLS  SELECT = [ SIGNIFICANCE ] 
18             FORMAT = F.3.
19
20 t-test /PAIRS a with b (PAIRED).
21
22 OUTPUT MODIFY 
23        /SELECT TABLES 
24        /TABLECELLS  SELECT = [ SIGNIFICANCE ] 
25             FORMAT = F12.5.
26
27 t-test /PAIRS a with b (PAIRED).
28
29 ]])
30
31 AT_CHECK([pspp -O format=csv prec.sps], [0], [dnl
32 Table: Paired Sample Statistics
33 ,,Mean,N,Std. Deviation,S.E. Mean
34 Pair 1,A,2.00,5,.71,.32
35 ,B,4.00,5,1.54,.69
36
37 Table: Paired Samples Correlations
38 ,,N,Correlation,Sig.
39 Pair 1,A & B,5,.92,.028
40
41 Table: Paired Samples Test
42 ,,Paired Differences,,,,,,,
43 ,,,,,95% Confidence Interval of the Difference,,,,
44 ,,Mean,Std. Deviation,Std. Error Mean,Lower,Upper,t,df,Sig. (2-tailed)
45 Pair 1,A - B,-2.00,.94,.42,-3.16,-.84,-4.78,4,.009
46
47 Table: Paired Sample Statistics
48 ,,Mean,N,Std. Deviation,S.E. Mean
49 Pair 1,A,2.00,5,.71,.32
50 ,B,4.00,5,1.54,.69
51
52 Table: Paired Samples Correlations
53 ,,N,Correlation,Sig.
54 Pair 1,A & B,5,.92,.02801
55
56 Table: Paired Samples Test
57 ,,Paired Differences,,,,,,,
58 ,,,,,95% Confidence Interval of the Difference,,,,
59 ,,Mean,Std. Deviation,Std. Error Mean,Lower,Upper,t,df,Sig. (2-tailed)
60 Pair 1,A - B,-2.00,.94,.42,-3.16,-.84,-4.78,4,.00877
61 ])
62
63 AT_CLEANUP