Update.
[pspp-builds.git] / TODO
1 Time-stamp: <2006-05-04 20:39:17 blp>
2
3 Procedure processing:
4
5 * Should not need temporary casefile in the common case.
6
7 * All of the procedure_*() variants can (and should) be implemented in terms of
8   a variant that provides "proc_func" plus an "end_func" called after all
9   processing is complete.
10
11 * The "split" variants should not dump the splits to the output file
12   automatically.  There is no need for the procedure code to talk to the output
13   manager.
14
15 * LAG need not be as much of a special case.
16
17 * Change sources into state machines?
18
19 Get rid of need for GNU diff in `make check'.
20
21 Format specifier code needs to be rewritten for lowered crappiness.
22
23 CROSSTABS needs to be re-examined.
24
25 RANK, which is needed for the Wilcoxon signed-rank statistic, Mann-Whitney U,
26 Kruskal-Wallis on NPAR TESTS and for Spearman and the Johnkheere trend test (in
27 other procedures).
28
29 Add NOT_REACHED() macro.
30
31 Scratch variables should not be available for use following TEMPORARY.
32
33 Check our results against the NIST StRD benchmark results at
34 strd.itl.nist.gov/div898/strd
35
36 Storage of value labels on disk is inefficient.  Invent new data structure.
37
38 Fix spanned joint cells, i.e., EDLEVEL on crosstabs.stat.
39
40 SELECT IF should be moved before other transformations whenever possible.  It
41 should only be impossible when one of the variables referred to in SELECT IF is
42 created or modified by a previous transformation.
43
44 Figure out a stylesheet for messages displayed by PSPP: i.e., what quotation
45 marks around filenames, etc.
46
47 From Zvi Grauer <z.grauer@csuohio.edu> and <zvi@mail.ohio.net>:
48
49    1. design of experiments software, specifically Factorial, response surface
50    methodology and mixrture design.
51
52    These would be EXTREMELY USEFUL for chemists, engineeris, and anyone
53    involved in the production of chemicals or formulations.
54
55    2. Multidimensional Scaling analysis (for market analysis) -
56
57    3. Preference mapping software for market analysis
58
59    4. Hierarchical clustering (as well as partition clustering)
60
61    5. Conjoint analysis
62
63    6. Categorical data analsys ?
64
65 Sometimes very wide (or very tall) columns can occur in tables.  What is a good
66 way to truncate them?  It doesn't seem to cause problems for the ascii or
67 postscript drivers, but it's not good in the general case.  Should they be
68 split somehow?  (One way that wide columns can occur is through user request,
69 for instance through a wide PRINT request--try time-date.stat with a narrow
70 ascii page or with the postscript driver on letter size paper.)
71
72 From Moshe Braner <mbraner@nessie.vdh.state.vt.us>: An idea regarding MATCH
73 FILES, again getting BEYOND the state of SPSS: it always bothered me that if I
74 have a large data file and I want to match it to a small lookup table, via
75 MATCH FILES FILE= /TABLE= /BY key, I need to SORT the large file on key, do the
76 match, then (usually) re-sort back into the order I really want it.  There is
77 no reason to do this, when the lookup table is small.  Even a dumb sequential
78 search through the table, for every case in the big file, is better, in some
79 cases, than the sort.  So here's my idea: first look at the /TABLE file, if it
80 is "small enough", read it into memory, and create an index (or hash table,
81 whatever) for it.  Then read the /FILE and use the index to match to each case.
82 OTOH, if the /TABLE is too large, then do it the old way, complaining if either
83 file is not sorted on key.
84
85 ----------------------------------------------------------------------
86 Statistical procedures:
87
88 For each case we read from the input program:
89
90 1. Execute permanent transformations.  If these drop the case, stop.
91 2. N OF CASES.  If we have already written N cases, stop.
92 3. Write case to replacement active file.
93 4. Execute temporary transformations.  If these drop the case, stop.
94 5. Post-TEMPORARY N OF CASES.  If we have already analyzed N cases, stop.
95 6. FILTER, PROCESS IF.  If these drop the case, stop.
96 7. Pass case to procedure.
97
98 Ugly cases:
99
100 LAG records cases in step 3.
101
102 AGGREGATE: When output goes to an external file, this is just an ordinary
103 procedure.  When output goes to the active file, step 3 should be skipped,
104 because AGGREGATE creates its own case sink and writes to it in step 7.  Also,
105 TEMPORARY has no effect and we just cancel it.  Regardless of direction of
106 output, we should not implement AGGREGATE through a transformation because that
107 will fail to honor FILTER, PROCESS IF, N OF CASES.
108
109 ADD FILES: Essentially an input program.  It silently cancels unclosed LOOPs
110 and DO IFs.  If the active file is used for input, then runs EXECUTE (if there
111 are any transformations) and then steals vfm_source and encapsulates it.  If
112 the active file is not used for input, then it cancels all the transformations
113 and deletes the original active file.
114
115 CASESTOVARS: ???
116
117 FLIP:
118
119 MATCH FILES: Similar to AGGREGATE.  This is a procedure.  When the active file
120 is used for input, it reads the active file; otherwise, it just cancels all the
121 transformations and deletes the original active file.  Step 3 should be
122 skipped, because MATCH FILES creates its own case sink and writes to it in step
123 7.  TEMPORARY is not allowed.
124
125 MODIFY VARS:
126
127 REPEATING DATA:
128
129 SORT CASES:
130
131 UPDATE: same as ADD FILES.
132
133 VARSTOCASES: ???
134 ----------------------------------------------------------------------
135 N OF CASES
136
137   * Before TEMPORARY, limits number of cases sent to the sink.
138
139   * After TEMPORARY, limits number of cases sent to the procedure.
140
141   * Without TEMPORARY, those are the same cases, so it limits both.
142
143 SAMPLE
144
145   * Sample is just a transformation.  It has no special properties.
146
147 FILTER
148
149   * Always selects cases sent to the procedure.
150
151   * No effect on cases sent to sink.
152
153   * Before TEMPORARY, selection is permanent.  After TEMPORARY,
154     selection stops after a procedure.
155
156 PROCESS IF
157
158   * Always selects cases sent to the procedure.
159
160   * No effect on cases sent to sink.
161
162   * Always stops after a procedure.
163
164 SPLIT FILE
165
166   * Ignored by AGGREGATE.  Used when procedures write matrices.
167
168   * Always applies to the procedure.
169
170   * Before TEMPORARY, splitting is permanent.  After TEMPORARY,
171     splitting stops after a procedure.
172
173 TEMPORARY
174
175   * TEMPORARY has no effect on AGGREGATE when output goes to the active file.
176
177   * SORT CASES, ADD FILES, RENAME VARIABLES, CASESTOVARS, VARSTOCASES,
178     COMPUTE with a lag function cannot be used after TEMPORARY.
179
180   * Cannot be used in DO IF...END IF or LOOP...END LOOP.
181
182   * FLIP ignores TEMPORARY.  All transformations become permanent.
183
184   * MATCH FILES and UPDATE cannot be used after TEMPORARY if active
185     file is an input source.
186
187   * RENAME VARIABLES is invalid after TEMPORARY.
188
189   * WEIGHT, SPLIT FILE, N OF CASES, FILTER, PROCESS IF apply only to
190     the next procedure when used after TEMPORARY.
191
192 WEIGHT
193
194   * Always applies to the procedure.
195
196   * Before TEMPORARY, weighting is permanent.  After TEMPORARY,
197     weighting stops after a procedure.
198
199
200 -------------------------------------------------------------------------------
201 Local Variables:
202 mode: text
203 fill-column: 79
204 End: