Add copyright and licence notices to files which lack them.
[pspp] / tests / language / dictionary / weight.at
1 dnl PSPP - a program for statistical analysis.
2 dnl Copyright (C) 2017 Free Software Foundation, Inc.
3 dnl 
4 dnl This program is free software: you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation, either version 3 of the License, or
7 dnl (at your option) any later version.
8 dnl 
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 dnl GNU General Public License for more details.
13 dnl 
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 dnl AT_BANNER([WEIGHT])
17
18 AT_SETUP([WEIGHT])
19 AT_DATA([weight.txt], [dnl
20    18    1
21    19    7
22    20   26
23    21   76
24    22   57
25    23   58
26    24   38
27    25   38
28    26   30
29    27   21
30    28   23
31    29   24
32    30   23
33    31   14
34    32   21
35    33   21
36    34   14
37    35   14
38    36   17
39    37   11
40    38   16
41    39   14
42    40   15
43    41   14
44    42   14
45    43    8
46    44   15
47    45   10
48    46   12
49    47   13
50    48   13
51    49    5
52    50    5
53    51    3
54    52    7
55    53    6
56    54    2
57    55    2
58    56    2
59    57    3
60    58    1
61    59    3
62    61    1
63    62    3
64    63    1
65    64    1
66    65    2
67    70    1
68    78    1
69    79    1
70    80    1
71    94    1
72 ])
73 AT_DATA([weight.sps], [dnl
74 SET FORMAT F8.3.
75 data list file='weight.txt'/AVAR 1-5 BVAR 6-10.
76 weight by BVAR.
77
78 descriptives AVAR /statistics all /format serial.
79 frequencies AVAR /statistics all.
80 ])
81 AT_CHECK([pspp -o pspp.csv weight.sps])
82 AT_CHECK([cat pspp.csv], [0], [dnl
83 Table: Reading 1 record from `weight.txt'.
84 Variable,Record,Columns,Format
85 AVAR,1,1-  5,F5.0
86 BVAR,1,6- 10,F5.0
87
88 Table: Valid cases = 730; cases with missing value(s) = 0.
89 Variable,Valid N,Missing N,Mean,S.E. Mean,Std Dev,Variance,Kurtosis,S.E. Kurt,Skewness,S.E. Skew,Range,Minimum,Maximum,Sum
90 AVAR,730,0,31.515,.405,10.937,119.608,2.411,.181,1.345,.090,76.000,18.000,94.000,23006.000
91
92 Table: AVAR
93 Value Label,Value,Frequency,Percent,Valid Percent,Cum Percent
94 ,18,1,.137,.137,.137
95 ,19,7,.959,.959,1.096
96 ,20,26,3.562,3.562,4.658
97 ,21,76,10.411,10.411,15.068
98 ,22,57,7.808,7.808,22.877
99 ,23,58,7.945,7.945,30.822
100 ,24,38,5.205,5.205,36.027
101 ,25,38,5.205,5.205,41.233
102 ,26,30,4.110,4.110,45.342
103 ,27,21,2.877,2.877,48.219
104 ,28,23,3.151,3.151,51.370
105 ,29,24,3.288,3.288,54.658
106 ,30,23,3.151,3.151,57.808
107 ,31,14,1.918,1.918,59.726
108 ,32,21,2.877,2.877,62.603
109 ,33,21,2.877,2.877,65.479
110 ,34,14,1.918,1.918,67.397
111 ,35,14,1.918,1.918,69.315
112 ,36,17,2.329,2.329,71.644
113 ,37,11,1.507,1.507,73.151
114 ,38,16,2.192,2.192,75.342
115 ,39,14,1.918,1.918,77.260
116 ,40,15,2.055,2.055,79.315
117 ,41,14,1.918,1.918,81.233
118 ,42,14,1.918,1.918,83.151
119 ,43,8,1.096,1.096,84.247
120 ,44,15,2.055,2.055,86.301
121 ,45,10,1.370,1.370,87.671
122 ,46,12,1.644,1.644,89.315
123 ,47,13,1.781,1.781,91.096
124 ,48,13,1.781,1.781,92.877
125 ,49,5,.685,.685,93.562
126 ,50,5,.685,.685,94.247
127 ,51,3,.411,.411,94.658
128 ,52,7,.959,.959,95.616
129 ,53,6,.822,.822,96.438
130 ,54,2,.274,.274,96.712
131 ,55,2,.274,.274,96.986
132 ,56,2,.274,.274,97.260
133 ,57,3,.411,.411,97.671
134 ,58,1,.137,.137,97.808
135 ,59,3,.411,.411,98.219
136 ,61,1,.137,.137,98.356
137 ,62,3,.411,.411,98.767
138 ,63,1,.137,.137,98.904
139 ,64,1,.137,.137,99.041
140 ,65,2,.274,.274,99.315
141 ,70,1,.137,.137,99.452
142 ,78,1,.137,.137,99.589
143 ,79,1,.137,.137,99.726
144 ,80,1,.137,.137,99.863
145 ,94,1,.137,.137,100.000
146 Total,,730,100.0,100.0,
147
148 Table: AVAR
149 N,Valid,730
150 ,Missing,0
151 Mean,,31.515
152 S.E. Mean,,.405
153 Mode,,21.000
154 Std Dev,,10.937
155 Variance,,119.608
156 Kurtosis,,2.411
157 S.E. Kurt,,.181
158 Skewness,,1.345
159 S.E. Skew,,.090
160 Range,,76.000
161 Minimum,,18.000
162 Maximum,,94.000
163 Sum,,23006.000
164 Percentiles,50 (Median),28
165 ])
166 AT_CLEANUP