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