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