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