Fixed bug #17420 (table columns exceeded with /FORMAT=nolabels )
[pspp-builds.git] / src / language / stats / ChangeLog
1 Fri Dec 22 19:22:18 WST 2006 John Darrington <john@darrington.wattle.id.au>
2
3         * frequencies.q : Fixed bug #17420, where the table bounds were overun
4         when /FORMAT=nolabels was given.
5
6 Wed Dec 20 18:45:31 WST 2006 John Darrington <john@darrington.wattle.id.au>
7
8         * binomial.c binomial.h : New files.  Thanks to Jason Stover 
9           for assistance with these.
10
11         * chisquare.c chisquare.h freq.c freq.h npar-summary.c npar-summary.h 
12           npar.h npar.q: New files.  Implementing NPAR TESTS.
13
14         * frequencies.q  : Moved  structure definitions into freq.[ch]
15
16 Sat Dec 16 22:26:44 2006  Ben Pfaff  <blp@gnu.org>
17
18         Make it possible to pull cases from the active file with a
19         function call, instead of requiring indirection through a callback
20         function.
21
22         * aggregate.c (cmd_aggregate): Take advantage of new procedure
23         interface.
24         (agr_to_active_file): Removed.
25         (presorted_agr_to_sysfile): Removed.
26
27         * autorecode.c (cmd_autorecode): Take advantage of new procedure
28         interface.
29         (autorecode_proc_func): Removed.
30
31         * flip.c (struct flip_pgm): New members to allow conformance with
32         new case_source_class interface.
33         (cmd_flip): Adapt to new case_source_class interface.
34         (flip_source_read): Ditto.
35         (flip_source_destroy): Ditto.
36
37 Sat Dec 16 12:54:27 2006  Ben Pfaff  <blp@gnu.org>
38
39         * rank.q (rank_custom_variables): Allow grouping variables to be
40         strings.  Fixes bug #18533.  Thanks to John Darrington for review.
41
42 Sat Dec  9 18:47:51 2006  Ben Pfaff  <blp@gnu.org>
43
44         * regression.q (is_depvar): Compare variable pointers instead of
45         variable names.
46
47 Thu Dec  7 15:26:25 WST 2006 John Darrington <john@darrington.wattle.id.au>
48
49         * examine.q: Allocated the categorical values for the dependent and 
50         independent variables, on the heap.  Hence they can be of any width.
51
52 Wed Dec  6 21:14:26 2006  Ben Pfaff  <blp@gnu.org>
53
54         * regression.q (reg_inserted): Compare variable pointers instead
55         of variable indexes.
56
57 Mon Dec  4 22:33:46 2006  Ben Pfaff  <blp@gnu.org>
58
59         * crosstabs.q (insert_summary): Use var_to_string for labeling.
60         (output_pivot_table) Ditto.
61         (submit) Ditto.
62
63         * frequencies.q (setup_z_trns): Ditto.
64         (dump_full) Ditto.
65         (dump_condensed) Ditto.
66         (dump_statistics) Ditto.
67         
68
69 Sun Nov  5 08:31:42 WST 2006 John Darrington <john@darrington.wattle.id.au>
70
71         * t-test.q, oneway.q: Changed to use the new casefilter structure.
72
73 Sat Oct 14 16:52:28 2006  Ben Pfaff  <blp@gnu.org>
74
75         * rank.q: (rank_sorted_casefile) Add some missing case_destroy()
76         calls to fix a memory leak.
77
78 Sun Oct  8 09:45:40 WST 2006 John Darrington <john@darrington.wattle.id.au>
79
80         * rank.q: Plugged a small memory leak which occurred under error
81         conditions.
82         
83 Sat Oct  7 11:06:01 WST 2006 John Darrington <john@darrington.wattle.id.au>
84
85         * rank.q: Implemented most of the RANK command.
86
87 2006-07-14  Jason Stover  <jhs@math.gcsu.edu>
88
89         * regression.q (run_regression): New function to move knowledge of
90         pspp_linreg_cache out of math/coefficient.[ch].
91
92 Sat Jul  1 17:41:46 2006  Ben Pfaff  <blp@gnu.org>
93
94         Fix bug #11612, "q2c documentation does not agree with code".
95         
96         * examine.q: Audit use of q2c "+" prefixes that indicate that a
97         command may appear multiple times.
98
99         * frequencies.q: Ditto.
100
101         * oneway.q: Ditto.
102
103         * regression.q: Ditto.
104
105         * t-test.q: Ditto.
106
107 Fri Jun 23 14:18:22 2006  Ben Pfaff  <blp@gnu.org>
108
109         Support long string variables on FREQUENCIES, as
110         an extension when in enhanced algorithms mode.  For Greg Hunt
111         <greg@firmansyah.com>.
112         
113         * frequencies.q: (struct freq) Change `v' member from union value
114         to union value *.  Update all references.
115         (struct var_freqs) Add width, print members to represent effective
116         variable width and display format.
117         (calc) Copy entire long string value into the hash table.
118         (frq_custom_variables) Set new width, print members.
119         (hash_value_alpha) Get width from var_freqs.
120         (compare_value_alpha_a) Ditto.
121         (compare_freq_alpha_a) Ditto.
122         (compare_freq_alpha_d) Ditto.
123         (dump_full) Get display format from var_freqs.
124         (dump_condensed) Ditto.
125
126 Mon Jun 19 22:07:13 2006  Ben Pfaff  <blp@gnu.org>
127
128         * frequencies.q: (dump_full) Only put the first MAX_SHORT_STRING
129         bytes of string variables into the output cells, seeing as we only
130         copy that many.
131         (dump_condensed) Ditto.
132
133 Mon Jun 19 21:52:05 2006  Ben Pfaff  <blp@gnu.org>
134
135         Fixes a bug reported by Greg Hunt <greg@firmansyah.com>.
136         
137         * frequencies.q: (hsh_hash_bytes) We only copy the first
138         MAX_SHORT_STRING bytes of string variables, so we must only
139         compare that many bytes, even if the string variable is longer.
140         (compare_value_alpha_a) Ditto.
141         (compare_freq_alpha_a) Ditto.
142         (compare_freq_alpha_d) Ditto.
143
144 2006-05-11  Jason Stover  <jhs@math.gcsu.edu>
145
146         * regression.q: Adjusted code to account for cache->coeff being a
147         pspp_linreg_coeff **.
148
149 Sun May  7 18:31:25 2006  Ben Pfaff  <blp@gnu.org>
150
151         Fix memory leak.
152         
153         * aggregate.c (cmd_aggregate): Free default_dict before replacing
154         it.
155
156 Sun May  7 17:09:19 2006  Ben Pfaff  <blp@gnu.org>
157
158         * flip.c (flip_file): Check return value of pool_fclose().
159
160 Sat May  6 16:00:13 2006  Ben Pfaff  <blp@gnu.org>
161
162         Get rid of `char *c' member in union value, for cleanliness.
163         
164         * aggregate.c: (union agr_argument) New union.
165         (struct agr_var) Change element type of arg[] from union value to
166         union agr_argument.
167         (parse_aggregate_functions) Change local variable types likewise.
168
169         * autorecode.c: (union arc_value) New union.
170         (struct arc_item) Change "from" from union value to union
171         arc_value.
172         (recode) Change local variable from union value to union
173         arc_value.
174         (autorecode_trns_proc) Ditto.
175         (compare_alpha_value) Ditto.
176         (hash_alpha_value) Ditto.
177         (compare_numeric_value) Ditto.
178         (hash_numeric_value) Ditto.
179         (autorecode_proc_func) Ditto.
180
181 Sat May  6 10:43:33 2006  Ben Pfaff  <blp@gnu.org>
182
183         Continue reforming procedure execution.  In this phase, get rid of
184         the output code for SPLIT FILE groups in procedure.c, which really
185         shouldn't be doing any output.  Move it into the individual
186         procedures instead.  This also adds some flexibility.
187
188         * crosstabs.q (precalc): Call output_split_file_values().
189
190         * descriptives.c (calc_descriptives): Ditto.
191
192         * examine.q (run_examine): Ditto.
193         
194         * frequencies.q (precalc): Ditto.
195
196         * oneway.q (run_oneway): Ditto.
197
198         * regression.q (run_regression): Ditto.
199
200         * t-test.q (calculate): Ditto.
201
202 Wed May  3 23:05:31 2006  Ben Pfaff  <blp@gnu.org>
203
204         Continue reforming procedure execution.  In this phase, get rid of
205         many global variables, consolidating procedure execution in
206         procedure.c.  Encapsulate transformations in new "struct
207         trns_chain".  Also, change implementation of N OF CASES, FILTER,
208         and PROCESS IF from special cases to transformations.
209          
210         * aggregate.c (cmd_aggregate) Use discard_variables().
211         
212 2006-04-28  Jason Stover  <jhs@math.gcsu.edu>
213
214         * regression.q (regression_trns_resid_proc): Pass only the
215         variables used in the model to (*model->residual)().
216
217         * regression.q (regression_trns_pred_proc): Pass only the
218         variables used in the model to (*model->pred)().
219
220 2006-04-26  Jason Stover  <jhs@math.gcsu.edu>
221
222         * regression.q: Added support for multiple transformations.
223         
224         * regression.q (regression_trns_resid_proc): New function.
225
226         * regression.q (regression_trns_pred_proc): New function.
227
228         * regression.q (subcommand_save): Added support for saving
229         predicted values.
230
231         * regression.q (regression_trns_free): New function. 
232
233         * regression.q (reg_get_name): New function.
234
235         * regression.q (reg_save_var): New function.
236
237 Tue Apr 25 13:18:56 2006  Ben Pfaff  <blp@gnu.org>
238
239         * rank.q (parse_rank_function): Use SE instead of ME for parse
240         errors.
241
242 Tue Apr 25 13:16:28 2006  Ben Pfaff  <blp@gnu.org>
243
244         * flip.c (flip_sink_write): Use snprintf() to simplify a bit of
245         code.
246
247 2006-04-21  Jason Stover  <jhs@math.gcsu.edu>
248
249         * regression.q (try_name): New function. (Partly copied from
250         try_name in descriptives.c.)
251
252         * regression.q (subcommand_save): Choose residual variable names
253         correctly. 
254
255 2006-04-20  Jason Stover  <jhs@math.gcsu.edu>
256
257         * regression.q (cmd_regression): Moved call to subcommand_save()
258         outside multipass_procedure_with_splits().
259         
260         * regression.q (regression_trns_proc): Fixed value counter n_vals
261         before calling *model->residual().
262
263 2006-04-19  Jason Stover  <jhs@math.gcsu.edu>
264
265         * regression.q (regression_trns_proc): Fixed the look-up of the
266         number of variables.
267
268 2006-04-18  Jason Stover  <jhs@math.gcsu.edu>
269
270         * regression.q (regression_trns_proc): Look up the residual
271         variable in the linear regression cache.
272
273         * regression.q (subcommand_save): Set the residual variable in the
274         linear regression cache.
275
276 2006-04-17  Jason Stover  <jason@wonko.gcsu.edu>
277
278         * regression.q (regression_trns_proc): Accept case_idx as an int
279         to match the definition of trns_proc_func.
280
281 2006-04-17  Jason Stover  <jhs@math.gcsu.edu>
282
283         * regression.q (regression_trns_proc): New function.
284
285         * regression.q (subcommand_save): Create variable residuals and
286         add a transformation to assign values to them. Also free the
287         linreg_cache if the SAVE command was not called. Removed the
288         casereading loop. Placed actual computation of residuals in
289         regression_trns_proc.
290
291         * regression.q (run_regression): Moved call to free
292         pspp_linreg_cache to subcommand_save.
293
294 Sat Apr 15 18:01:03 2006  Ben Pfaff  <blp@gnu.org>
295
296         * examine.q (output_examine): Add casts to fix warnings.
297
298 2006-04-07  Jason Stover  <jhs@math.gcsu.edu>
299
300         * regression.q (subcommand_save): New function.
301
302 2006-04-04  Jason Stover  <jhs@math.gcsu.edu>
303
304         * regression.q: New function reg_has_categorical () to tell
305         whether a pspp_linreg_struct was made with any variables of type
306         ALPHA.
307
308         * regression.q: (subcommand_export): Call
309         reg_print_categorical_encoding() only if the model uses any
310         categorical variables.
311
312 Mon Mar 27 16:00:42 2006  Ben Pfaff  <blp@gnu.org>
313
314         * crosstabs.q: (output_pivot_table) Drop spurious space from
315         message.
316
317 2006-03-15  Jason Stover  <jhs@math.gcsu.edu>
318
319         * regression.q: Added custom syntax parser for VARIABLES subcommand
320
321         * regression.q: Moved most instructions for run_regression ()
322         inside the loop over dependent variables.
323
324 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
325         
326         * Moved files from src directory