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