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