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