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