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