a0f3c53cd629312edcf7bf0e43e67e3f2c77820d
[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
17 AT_BANNER([WEIGHT])
18
19 AT_SETUP([WEIGHT])
20 AT_DATA([weight.txt], [dnl
21    18    1
22    19    7
23    20   26
24    21   76
25    22   57
26    23   58
27    24   38
28    25   38
29    26   30
30    27   21
31    28   23
32    29   24
33    30   23
34    31   14
35    32   21
36    33   21
37    34   14
38    35   14
39    36   17
40    37   11
41    38   16
42    39   14
43    40   15
44    41   14
45    42   14
46    43    8
47    44   15
48    45   10
49    46   12
50    47   13
51    48   13
52    49    5
53    50    5
54    51    3
55    52    7
56    53    6
57    54    2
58    55    2
59    56    2
60    57    3
61    58    1
62    59    3
63    61    1
64    62    3
65    63    1
66    64    1
67    65    2
68    70    1
69    78    1
70    79    1
71    80    1
72    94    1
73 ])
74 AT_DATA([weight.sps], [dnl
75 SET FORMAT F8.3.
76 data list file='weight.txt'/AVAR 1-5 BVAR 6-10.
77 weight by BVAR.
78
79 descriptives AVAR /statistics all /format serial.
80 frequencies AVAR /statistics all.
81 ])
82 AT_CHECK([pspp -o pspp.csv weight.sps])
83 AT_CHECK([cat pspp.csv], [0], [dnl
84 Table: Reading 1 record from `weight.txt'.
85 Variable,Record,Columns,Format
86 AVAR,1,1-  5,F5.0
87 BVAR,1,6- 10,F5.0
88
89 Table: Valid cases = 730; cases with missing value(s) = 0.
90 Variable,Valid N,Missing N,Mean,S.E. Mean,Std Dev,Variance,Kurtosis,S.E. Kurt,Skewness,S.E. Skew,Range,Minimum,Maximum,Sum
91 AVAR,730,0,31.515,.405,10.937,119.608,2.411,.181,1.345,.090,76.000,18.000,94.000,23006.000
92
93 Table: AVAR
94 Value Label,Value,Frequency,Percent,Valid Percent,Cum Percent
95 ,18,1,.137,.137,.137
96 ,19,7,.959,.959,1.096
97 ,20,26,3.562,3.562,4.658
98 ,21,76,10.411,10.411,15.068
99 ,22,57,7.808,7.808,22.877
100 ,23,58,7.945,7.945,30.822
101 ,24,38,5.205,5.205,36.027
102 ,25,38,5.205,5.205,41.233
103 ,26,30,4.110,4.110,45.342
104 ,27,21,2.877,2.877,48.219
105 ,28,23,3.151,3.151,51.370
106 ,29,24,3.288,3.288,54.658
107 ,30,23,3.151,3.151,57.808
108 ,31,14,1.918,1.918,59.726
109 ,32,21,2.877,2.877,62.603
110 ,33,21,2.877,2.877,65.479
111 ,34,14,1.918,1.918,67.397
112 ,35,14,1.918,1.918,69.315
113 ,36,17,2.329,2.329,71.644
114 ,37,11,1.507,1.507,73.151
115 ,38,16,2.192,2.192,75.342
116 ,39,14,1.918,1.918,77.260
117 ,40,15,2.055,2.055,79.315
118 ,41,14,1.918,1.918,81.233
119 ,42,14,1.918,1.918,83.151
120 ,43,8,1.096,1.096,84.247
121 ,44,15,2.055,2.055,86.301
122 ,45,10,1.370,1.370,87.671
123 ,46,12,1.644,1.644,89.315
124 ,47,13,1.781,1.781,91.096
125 ,48,13,1.781,1.781,92.877
126 ,49,5,.685,.685,93.562
127 ,50,5,.685,.685,94.247
128 ,51,3,.411,.411,94.658
129 ,52,7,.959,.959,95.616
130 ,53,6,.822,.822,96.438
131 ,54,2,.274,.274,96.712
132 ,55,2,.274,.274,96.986
133 ,56,2,.274,.274,97.260
134 ,57,3,.411,.411,97.671
135 ,58,1,.137,.137,97.808
136 ,59,3,.411,.411,98.219
137 ,61,1,.137,.137,98.356
138 ,62,3,.411,.411,98.767
139 ,63,1,.137,.137,98.904
140 ,64,1,.137,.137,99.041
141 ,65,2,.274,.274,99.315
142 ,70,1,.137,.137,99.452
143 ,78,1,.137,.137,99.589
144 ,79,1,.137,.137,99.726
145 ,80,1,.137,.137,99.863
146 ,94,1,.137,.137,100.000
147 Total,,730,100.0,100.0,
148
149 Table: AVAR
150 N,Valid,730
151 ,Missing,0
152 Mean,,31.515
153 S.E. Mean,,.405
154 Mode,,21.000
155 Std Dev,,10.937
156 Variance,,119.608
157 Kurtosis,,2.411
158 S.E. Kurt,,.181
159 Skewness,,1.345
160 S.E. Skew,,.090
161 Range,,76.000
162 Minimum,,18.000
163 Maximum,,94.000
164 Sum,,23006.000
165 Percentiles,50 (Median),28
166 ])
167 AT_CLEANUP