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