File: pspp-output.at

package info (click to toggle)
pspp 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 66,676 kB
  • sloc: ansic: 267,210; xml: 18,446; sh: 5,534; python: 2,881; makefile: 125; perl: 64
file content (221 lines) | stat: -rw-r--r-- 9,048 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
dnl Copyright (C) 2020  Free Software Foundation

dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation, either version 3 of the License, or
dnl (at your option) any later version.

dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl GNU General Public License for more details.

dnl You should have received a copy of the GNU General Public License
dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.

AT_BANNER([pspp-output])

AT_SETUP([pspp-output dir])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv], [0], [dnl
- group "Set" command "Set"
- group "Title" command "Title"
    - text "Page Title" command "Title"
- group "Data List" command "Data List"
    - table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
- group "Begin Data" command "Begin Data"
- group "List" command "List"
    - table "Data List" command "List"
- group "Frequencies" command "Frequencies"
    - table "Statistics" command "Frequencies"
    - table "v0" command "Frequencies" subtype "Frequencies"
    - table "v1" command "Frequencies" subtype "Frequencies"
    - table "v2" command "Frequencies" subtype "Frequencies"
- group "Regression" command "Regression"
    - table "Model Summary (v2)" command "Regression" subtype "Model Summary"
    - table "ANOVA (v2)" command "Regression" subtype "ANOVA"
    - table "Coefficients (v2)" command "Regression" subtype "Coefficients"
])
AT_CLEANUP

AT_SETUP([pspp-output --select equal])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --select=tables],
  [0], [dnl
- table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
- table "Data List" command "List"
- table "Statistics" command "Frequencies"
- table "v0" command "Frequencies" subtype "Frequencies"
- table "v1" command "Frequencies" subtype "Frequencies"
- table "v2" command "Frequencies" subtype "Frequencies"
- table "Model Summary (v2)" command "Regression" subtype "Model Summary"
- table "ANOVA (v2)" command "Regression" subtype "ANOVA"
- table "Coefficients (v2)" command "Regression" subtype "Coefficients"
])
AT_CLEANUP

AT_SETUP([pspp-output --select unequal])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --select=^outlineheaders],
  [0], [dnl
- text "Page Title" command "Title"
- table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
- table "Data List" command "List"
- table "Statistics" command "Frequencies"
- table "v0" command "Frequencies" subtype "Frequencies"
- table "v1" command "Frequencies" subtype "Frequencies"
- table "v2" command "Frequencies" subtype "Frequencies"
- table "Model Summary (v2)" command "Regression" subtype "Model Summary"
- table "ANOVA (v2)" command "Regression" subtype "ANOVA"
- table "Coefficients (v2)" command "Regression" subtype "Coefficients"
])
AT_CLEANUP

AT_SETUP([pspp-output --commands equal])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --commands='reg*'],
  [0], [dnl
- group "Regression" command "Regression"
    - table "Model Summary (v2)" command "Regression" subtype "Model Summary"
    - table "ANOVA (v2)" command "Regression" subtype "ANOVA"
    - table "Coefficients (v2)" command "Regression" subtype "Coefficients"
])
AT_CLEANUP

AT_SETUP([pspp-output --commands unequal])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --commands='^reg*'],
  [0], [dnl
- group "Set" command "Set"
- group "Title" command "Title"
    - text "Page Title" command "Title"
- group "Data List" command "Data List"
    - table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
- group "Begin Data" command "Begin Data"
- group "List" command "List"
    - table "Data List" command "List"
- group "Frequencies" command "Frequencies"
    - table "Statistics" command "Frequencies"
    - table "v0" command "Frequencies" subtype "Frequencies"
    - table "v1" command "Frequencies" subtype "Frequencies"
    - table "v2" command "Frequencies" subtype "Frequencies"
])
AT_CLEANUP

AT_SETUP([pspp-output --nth-commands])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --nth-commands=2,4,6],
  [0], [dnl
- group "Title" command "Title"
    - text "Page Title" command "Title"
- group "Begin Data" command "Begin Data"
- group "Frequencies" command "Frequencies"
    - table "Statistics" command "Frequencies"
    - table "v0" command "Frequencies" subtype "Frequencies"
    - table "v1" command "Frequencies" subtype "Frequencies"
    - table "v2" command "Frequencies" subtype "Frequencies"
])
AT_CLEANUP

AT_SETUP([pspp-output --subtypes equal])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --subtypes='freq*'],
  [0], [dnl
- table "v0" command "Frequencies" subtype "Frequencies"
- table "v1" command "Frequencies" subtype "Frequencies"
- table "v2" command "Frequencies" subtype "Frequencies"
])
AT_CLEANUP

AT_SETUP([pspp-output --subtypes unequal])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --subtypes='^freq*'],
  [0], [dnl
- group "Set" command "Set"
- group "Title" command "Title"
    - text "Page Title" command "Title"
- group "Data List" command "Data List"
    - table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
- group "Begin Data" command "Begin Data"
- group "List" command "List"
    - table "Data List" command "List"
- group "Frequencies" command "Frequencies"
    - table "Statistics" command "Frequencies"
- group "Regression" command "Regression"
    - table "Model Summary (v2)" command "Regression" subtype "Model Summary"
    - table "ANOVA (v2)" command "Regression" subtype "ANOVA"
    - table "Coefficients (v2)" command "Regression" subtype "Coefficients"
])
AT_CLEANUP

AT_SETUP([pspp-output --labels equal])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --labels='v*'],
  [0], [dnl
- table "v0" command "Frequencies" subtype "Frequencies"
- table "v1" command "Frequencies" subtype "Frequencies"
- table "v2" command "Frequencies" subtype "Frequencies"
])
AT_CLEANUP

AT_SETUP([pspp-output --labels unequal])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --labels='^data*'],
  [0], [dnl
- group "Set" command "Set"
- group "Title" command "Title"
    - text "Page Title" command "Title"
- table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
- group "Begin Data" command "Begin Data"
- group "List" command "List"
- group "Frequencies" command "Frequencies"
    - table "Statistics" command "Frequencies"
    - table "v0" command "Frequencies" subtype "Frequencies"
    - table "v1" command "Frequencies" subtype "Frequencies"
    - table "v2" command "Frequencies" subtype "Frequencies"
- group "Regression" command "Regression"
    - table "Model Summary (v2)" command "Regression" subtype "Model Summary"
    - table "ANOVA (v2)" command "Regression" subtype "ANOVA"
    - table "Coefficients (v2)" command "Regression" subtype "Coefficients"
])
AT_CLEANUP

AT_SETUP([pspp-output --instances])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --instances=1],
  [0], [dnl
- text "Page Title" command "Title"
- table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
- table "Data List" command "List"
- table "Statistics" command "Frequencies"
- table "Model Summary (v2)" command "Regression" subtype "Model Summary"
])
AT_CLEANUP

AT_SETUP([pspp-output --instances=last])
AT_KEYWORDS([--instances last])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --instances=last],
  [0], [dnl
- text "Page Title" command "Title"
- table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
- table "Data List" command "List"
- table "v2" command "Frequencies" subtype "Frequencies"
- table "Coefficients (v2)" command "Regression" subtype "Coefficients"
])
AT_CLEANUP

dnl XXX Currently PSPP doesn't output hidden items so no tests
dnl XXX for --show-hidden.

AT_SETUP([pspp-output --or])
AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --select=outlineheaders --or --labels='v*'],
  [0], [dnl
- group "Set" command "Set"
- group "Title" command "Title"
- group "Data List" command "Data List"
- group "Begin Data" command "Begin Data"
- group "List" command "List"
- group "Frequencies" command "Frequencies"
    - table "v0" command "Frequencies" subtype "Frequencies"
    - table "v1" command "Frequencies" subtype "Frequencies"
    - table "v2" command "Frequencies" subtype "Frequencies"
- group "Regression" command "Regression"
])
AT_CLEANUP

AT_SETUP([pspp-output convert])
AT_CHECK([pspp-output convert $srcdir/utilities/regress.spv -O format=csv - --subtypes='model*'], [0], [dnl
Table: Model Summary (v2)
R,R Square,Adjusted R Square,Std. Error of the Estimate
.96,.92,.91,1.49
])
AT_CLEANUP