1 /* PSPP - computes sample statistics.
2 Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
3 Written by Ben Pfaff <blp@gnu.org>.
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 /* State abbreviations. */
21 #define INIT STATE_INIT
22 #define INPU STATE_INPUT
23 #define TRAN STATE_TRANS
24 #define PROC STATE_PROC
25 #define ERRO STATE_ERROR
27 UNIMPL ("ACF", ERRO, ERRO, ERRO, ERRO, "Autocorrelation function")
28 UNIMPL ("ADD FILES", ERRO, ERRO, ERRO, ERRO, "Add files to dictionary")
29 DEFCMD ("ADD VALUE LABELS", ERRO, INPU, TRAN, TRAN, cmd_add_value_labels)
30 DEFCMD ("AGGREGATE", ERRO, ERRO, PROC, TRAN, cmd_aggregate)
31 UNIMPL ("ALSCAL", ERRO, ERRO, ERRO, ERRO, "Multidimensional scaling")
32 UNIMPL ("ANOVA", ERRO, ERRO, ERRO, ERRO, "Factorial analysis of variance")
33 DEFCMD ("APPLY DICTIONARY", ERRO, ERRO, TRAN, TRAN, cmd_apply_dictionary)
34 DEFCMD ("AUTORECODE", ERRO, ERRO, PROC, PROC, cmd_autorecode)
35 SPCCMD ("BEGIN DATA", ERRO, ERRO, PROC, PROC, cmd_begin_data)
36 DEFCMD ("BREAK", ERRO, INPU, TRAN, TRAN, cmd_break)
37 UNIMPL ("CASEPLOT", ERRO, ERRO, ERRO, ERRO, "Plot time series")
38 UNIMPL ("CASESTOVARS", ERRO, ERRO, ERRO, ERRO, "Restructure complex data")
39 UNIMPL ("CCF", ERRO, ERRO, ERRO, ERRO, "Time series cross correlation")
40 DEFCMD ("CLEAR TRANSFORMATIONS", ERRO, INPU, TRAN, TRAN, cmd_clear_transformations)
41 DEFCMD ("CLOSE FILE HANDLE", INIT, INPU, TRAN, PROC, cmd_close_file_handle)
42 UNIMPL ("CLUSTER", ERRO, ERRO, ERRO, ERRO, "Hierachial clustering")
43 DEFCMD ("COMPUTE", ERRO, INPU, TRAN, TRAN, cmd_compute)
44 UNIMPL ("CONJOINT", ERRO, ERRO, ERRO, ERRO, "Analyse full concept data")
45 DEFCMD ("CORRELATIONS", ERRO, ERRO, PROC, PROC, cmd_correlations)
46 DEFCMD ("COUNT", ERRO, INPU, TRAN, TRAN, cmd_count)
47 UNIMPL ("COXREG", ERRO, ERRO, ERRO, ERRO, "Cox proportional hazards regression")
48 UNIMPL ("CREATE", ERRO, ERRO, ERRO, ERRO, "Create time series data")
49 DEFCMD ("CROSSTABS", ERRO, ERRO, PROC, PROC, cmd_crosstabs)
50 UNIMPL ("CURVEFIT", ERRO, ERRO, ERRO, ERRO, "Fit curve to line plot")
51 DEFCMD ("DATA LIST", TRAN, INPU, TRAN, TRAN, cmd_data_list)
52 UNIMPL ("DATE", ERRO, ERRO, ERRO, ERRO, "Create time series data")
53 DBGCMD ("DEBUG CASEFILE", INIT, INPU, TRAN, PROC, cmd_debug_casefile)
54 DBGCMD ("DEBUG EVALUATE", INIT, INPU, TRAN, PROC, cmd_debug_evaluate)
55 DBGCMD ("DEBUG MOMENTS", INIT, INPU, TRAN, PROC, cmd_debug_moments)
56 DBGCMD ("DEBUG POOL", INIT, INPU, TRAN, PROC, cmd_debug_pool)
57 DEFCMD ("DESCRIPTIVES", ERRO, ERRO, PROC, PROC, cmd_descriptives)
58 UNIMPL ("DISCRIMINANT", ERRO, ERRO, ERRO, ERRO, "Linear discriminant analysis")
59 DEFCMD ("DISPLAY", ERRO, INPU, TRAN, PROC, cmd_display)
60 SPCCMD ("DOCUMENT", ERRO, INPU, TRAN, TRAN, cmd_document)
61 DEFCMD ("DO IF", ERRO, INPU, TRAN, TRAN, cmd_do_if)
62 DEFCMD ("DO REPEAT", ERRO, INPU, TRAN, TRAN, cmd_do_repeat)
63 DEFCMD ("DROP DOCUMENTS", INIT, INPU, TRAN, PROC, cmd_drop_documents)
64 DEFCMD ("ECHO", INIT, INPU, TRAN, PROC, cmd_echo)
65 UNIMPL ("EDIT", ERRO, ERRO, ERRO, ERRO, "obsolete")
66 DEFCMD ("ELSE", ERRO, INPU, TRAN, TRAN, cmd_else)
67 DEFCMD ("ELSE IF", ERRO, INPU, TRAN, TRAN, cmd_else_if)
68 DEFCMD ("END CASE", ERRO, INPU, ERRO, ERRO, cmd_end_case)
69 DEFCMD ("END FILE", ERRO, INPU, ERRO, ERRO, cmd_end_file)
70 UNIMPL ("END FILE TYPE", ERRO, TRAN, ERRO, ERRO, "Ends complex data input")
71 DEFCMD ("END IF", ERRO, INPU, TRAN, TRAN, cmd_end_if)
72 DEFCMD ("END INPUT PROGRAM", ERRO, TRAN, ERRO, ERRO, cmd_end_input_program)
73 DEFCMD ("END LOOP", ERRO, INPU, TRAN, TRAN, cmd_end_loop)
74 DEFCMD ("END REPEAT", ERRO, INPU, TRAN, TRAN, cmd_end_repeat)
75 DEFCMD ("ERASE", INIT, INPU, TRAN, PROC, cmd_erase)
76 DEFCMD ("EXAMINE", ERRO, ERRO, PROC, PROC, cmd_examine)
77 DEFCMD ("EXECUTE", ERRO, ERRO, PROC, PROC, cmd_execute)
78 DEFCMD ("EXIT", INIT, INPU, TRAN, PROC, cmd_exit)
79 DEFCMD ("EXPORT", ERRO, ERRO, PROC, PROC, cmd_export)
80 UNIMPL ("FACTOR", ERRO, ERRO, ERRO, ERRO, "Factor analysis")
81 DEFCMD ("FILE HANDLE", INIT, INPU, TRAN, PROC, cmd_file_handle)
82 SPCCMD ("FILE LABEL", INIT, INPU, TRAN, PROC, cmd_file_label)
83 UNIMPL ("FILE TYPE", INPU, ERRO, INPU, INPU, "Complex data input")
84 DEFCMD ("FILTER", ERRO, ERRO, TRAN, TRAN, cmd_filter)
85 DEFCMD ("FINISH", INIT, INPU, TRAN, PROC, cmd_finish)
86 UNIMPL ("FIT", ERRO, ERRO, ERRO, ERRO, "Goodness of Fit")
87 DEFCMD ("FLIP", ERRO, ERRO, PROC, PROC, cmd_flip)
88 DEFCMD ("FORMATS", INIT, INPU, TRAN, PROC, cmd_formats)
89 DEFCMD ("FREQUENCIES", ERRO, ERRO, PROC, PROC, cmd_frequencies)
90 DEFCMD ("GET", TRAN, ERRO, TRAN, TRAN, cmd_get)
91 UNIMPL ("GET TRANSLATE", ERRO, ERRO, ERRO, ERRO, "Read other file formats")
92 UNIMPL ("GLM", ERRO, ERRO, ERRO, ERRO, "General Linear Model")
93 UNIMPL ("GRAPH", ERRO, ERRO, ERRO, ERRO, "Draw graphs")
94 DEFCMD ("HOST", INIT, INPU, TRAN, PROC, cmd_host)
95 DEFCMD ("IF", ERRO, INPU, TRAN, TRAN, cmd_if)
96 UNIMPL ("IGRAPH", ERRO, ERRO, ERRO, ERRO, "Interactive graphs")
97 DEFCMD ("IMPORT", TRAN, ERRO, TRAN, TRAN, cmd_import)
98 DEFCMD ("INCLUDE", INIT, INPU, TRAN, PROC, cmd_include)
99 UNIMPL ("INFO", ERRO, ERRO, ERRO, ERRO, "Local Documentation")
100 DEFCMD ("INPUT PROGRAM", INPU, ERRO, INPU, INPU, cmd_input_program)
101 UNIMPL ("KEYED DATA LIST", ERRO, ERRO, ERRO, ERRO, "Read nonsequential data")
102 UNIMPL ("KM", ERRO, ERRO, ERRO, ERRO, "Kaplan-Meier")
103 DEFCMD ("LEAVE", ERRO, INPU, TRAN, TRAN, cmd_leave)
104 DEFCMD ("LIST", ERRO, ERRO, PROC, PROC, cmd_list)
105 UNIMPL ("LOGISTIC REGRESSION", ERRO, ERRO, ERRO, ERRO, "Regression Analysis")
106 DEFCMD ("LOOP", ERRO, INPU, TRAN, TRAN, cmd_loop)
107 DEFCMD ("MATCH FILES", TRAN, ERRO, TRAN, PROC, cmd_match_files)
108 DEFCMD ("MATRIX DATA", TRAN, ERRO, TRAN, TRAN, cmd_matrix_data)
109 UNIMPL ("MCONVERT", ERRO, ERRO, ERRO, ERRO, "Convert covariance/correlation matrices")
110 DEFCMD ("MEANS", ERRO, ERRO, PROC, PROC, cmd_means)
111 DEFCMD ("MISSING VALUES", ERRO, INPU, TRAN, TRAN, cmd_missing_values)
112 DEFCMD ("MODIFY VARS", ERRO, ERRO, TRAN, PROC, cmd_modify_vars)
113 UNIMPL ("MULT RESPONSE", ERRO, ERRO, ERRO, ERRO, "Multiple reponse analysis")
114 UNIMPL ("MVA", ERRO, ERRO, ERRO, ERRO, "Missing value analysis")
115 DEFCMD ("NEW FILE", INIT, ERRO, INIT, INIT, cmd_new_file)
116 DEFCMD ("N", INIT, INPU, TRAN, TRAN, cmd_n_of_cases)
117 DEFCMD ("N OF CASES", INIT, INPU, TRAN, TRAN, cmd_n_of_cases)
118 UNIMPL ("NLR", ERRO, ERRO, ERRO, ERRO, "Non Linear Regression")
119 UNIMPL ("NONPAR CORR", ERRO, ERRO, ERRO, ERRO, "Nonparametric correlation")
120 UNIMPL ("NPAR TESTS", ERRO, ERRO, ERRO, ERRO, "Nonparametric tests")
121 UNIMPL ("NUMBERED", ERRO, ERRO, ERRO, ERRO, "")
122 DEFCMD ("NUMERIC", ERRO, INPU, TRAN, TRAN, cmd_numeric)
123 DEFCMD ("ONEWAY", ERRO, ERRO, PROC, PROC, cmd_oneway)
124 UNIMPL ("PACF", ERRO, ERRO, ERRO, ERRO, "Partial autocorrelation")
125 UNIMPL ("PARTIAL CORR", ERRO, ERRO, ERRO, ERRO, "Partial correlation")
126 DEFCMD ("PEARSON CORRELATIONS", ERRO, ERRO, PROC, PROC, cmd_correlations)
127 DEFCMD ("PERMISSIONS", INIT, INPU, TRAN, PROC, cmd_permissions)
128 UNIMPL ("POINT", ERRO, ERRO, ERRO, ERRO, "Marker in keyed file")
129 UNIMPL ("PPLOT", ERRO, ERRO, ERRO, ERRO, "Plot time series variables")
130 UNIMPL ("PREDICT", ERRO, ERRO, ERRO, ERRO, "Specify forecast period")
131 UNIMPL ("PRESERVE", ERRO, ERRO, ERRO, ERRO, "Push settings")
132 DEFCMD ("PRINT EJECT", ERRO, INPU, TRAN, TRAN, cmd_print_eject)
133 DEFCMD ("PRINT", ERRO, INPU, TRAN, TRAN, cmd_print)
134 DEFCMD ("PRINT FORMATS", ERRO, INPU, TRAN, TRAN, cmd_print_formats)
135 DEFCMD ("PRINT SPACE", ERRO, INPU, TRAN, TRAN, cmd_print_space)
136 UNIMPL ("PROCEDURE OUTPUT", ERRO, ERRO, ERRO, ERRO, "Specify output file")
137 UNIMPL ("PROBIT", ERRO, ERRO, ERRO, ERRO, "Probit analysis")
138 DEFCMD ("PROCESS IF", ERRO, ERRO, TRAN, TRAN, cmd_process_if)
139 UNIMPL ("PROXIMITIES", ERRO, ERRO, ERRO, ERRO, "Pairwise similarity")
140 DEFCMD ("Q", INIT, INPU, TRAN, PROC, cmd_exit)
141 UNIMPL ("QUICK CLUSTER", ERRO, ERRO, ERRO, ERRO, "Fast clustering")
142 DEFCMD ("QUIT", INIT, INPU, TRAN, PROC, cmd_exit)
143 UNIMPL ("RANK", ERRO, ERRO, ERRO, ERRO, "Create rank scores")
144 DEFCMD ("RECODE", ERRO, INPU, TRAN, TRAN, cmd_recode)
145 DEFCMD ("RECORD TYPE", ERRO, INPU, ERRO, ERRO, cmd_record_type)
146 UNIMPL ("REFORMAT", ERRO, ERRO, ERRO, ERRO, "Read obsolete files")
147 DEFCMD ("REGRESSION", ERRO, ERRO, PROC, PROC, cmd_regression)
148 DEFCMD ("RENAME VARIABLES", ERRO, INPU, TRAN, PROC, cmd_rename_variables)
149 UNIMPL ("REPEATING DATA", ERRO, INPU, ERRO, ERRO, "Specify multiple cases per input record")
150 UNIMPL ("REPORT", ERRO, ERRO, ERRO, ERRO, "Pretty print working file")
151 DEFCMD ("REREAD", ERRO, INPU, ERRO, ERRO, cmd_reread)
152 UNIMPL ("RESTORE", ERRO, ERRO, ERRO, ERRO, "Restore settings")
153 UNIMPL ("ROC", ERRO, ERRO, ERRO, ERRO, "Receiver operating characteristic")
154 UNIMPL ("RMV", ERRO, ERRO, ERRO, ERRO, "Replace missing values")
155 DEFCMD ("SAMPLE", ERRO, ERRO, TRAN, TRAN, cmd_sample)
156 DEFCMD ("SAVE", ERRO, ERRO, PROC, PROC, cmd_save)
157 UNIMPL ("SAVE TRANSLATE", ERRO, ERRO, ERRO, ERRO, "Save to foriegn format")
158 UNIMPL ("SCRIPT", ERRO, ERRO, ERRO, ERRO, "Run script file")
159 DEFCMD ("SELECT IF", ERRO, ERRO, TRAN, TRAN, cmd_select_if)
160 DEFCMD ("SET", INIT, INPU, TRAN, PROC, cmd_set)
161 DEFCMD ("SHOW", INIT, INPU, TRAN, PROC, cmd_show)
162 DEFCMD ("SORT CASES", ERRO, ERRO, PROC, PROC, cmd_sort_cases)
163 DEFCMD ("SORT", ERRO, ERRO, PROC, PROC, cmd_sort_cases)
164 UNIMPL ("SPCHART", ERRO, ERRO, ERRO, ERRO, "Plot control charts")
165 DEFCMD ("SPLIT FILE", ERRO, INPU, TRAN, TRAN, cmd_split_file)
166 DEFCMD ("STRING", ERRO, INPU, TRAN, TRAN, cmd_string)
167 SPCCMD ("SUBTITLE", INIT, INPU, TRAN, PROC, cmd_subtitle)
168 UNIMPL ("SUMMARIZE", ERRO, ERRO, ERRO, ERRO, "Univariate statistics")
169 UNIMPL ("SURVIVAL", ERRO, ERRO, ERRO, ERRO, "Survival analysis")
170 DEFCMD ("SYSFILE INFO", INIT, INPU, TRAN, PROC, cmd_sysfile_info)
171 DEFCMD ("TEMPORARY", ERRO, ERRO, TRAN, TRAN, cmd_temporary)
172 SPCCMD ("TITLE", INIT, INPU, TRAN, PROC, cmd_title)
173 UNIMPL ("TSET", ERRO, ERRO, ERRO, ERRO, "Set time sequence variables")
174 UNIMPL ("TSHOW", ERRO, ERRO, ERRO, ERRO, "Show time sequence variables")
175 UNIMPL ("TSPLOT", ERRO, ERRO, ERRO, ERRO, "Plot time sequence variables")
176 DEFCMD ("T-TEST", ERRO, ERRO, PROC, PROC, cmd_t_test)
177 UNIMPL ("UNIANOVA", ERRO, ERRO, ERRO, ERRO, "Univariate analysis")
178 UNIMPL ("UNNUMBERED", ERRO, ERRO, ERRO, ERRO, "obsolete")
179 UNIMPL ("UPDATE", ERRO, ERRO, ERRO, ERRO, "Update working file")
180 DEFCMD ("USE", ERRO, ERRO, TRAN, TRAN, cmd_use)
181 DEFCMD ("VALUE LABELS", ERRO, INPU, TRAN, TRAN, cmd_value_labels)
182 DEFCMD ("VARIABLE LABELS", ERRO, INPU, TRAN, TRAN, cmd_variable_labels)
183 DEFCMD ("VARIABLE ALIGNMENT", ERRO, INPU, TRAN, TRAN, cmd_variable_alignment)
184 DEFCMD ("VARIABLE LEVEL", ERRO, INPU, TRAN, TRAN, cmd_variable_level)
185 DEFCMD ("VARIABLE WIDTH", ERRO, INPU, TRAN, TRAN, cmd_variable_width)
186 UNIMPL ("VARSTOCASES", ERRO, ERRO, ERRO, ERRO, "Restructure complex data")
187 DEFCMD ("VECTOR", ERRO, INPU, TRAN, TRAN, cmd_vector)
188 UNIMPL ("VERIFY", ERRO, ERRO, ERRO, ERRO, "Report time series")
189 DEFCMD ("WEIGHT", ERRO, INPU, TRAN, TRAN, cmd_weight)
190 DEFCMD ("WRITE", ERRO, INPU, TRAN, TRAN, cmd_write)
191 DEFCMD ("WRITE FORMATS", ERRO, INPU, TRAN, TRAN, cmd_write_formats)
192 DEFCMD ("XEXPORT", ERRO, INPU, TRAN, TRAN, cmd_xexport)
193 DEFCMD ("XSAVE", ERRO, INPU, TRAN, TRAN, cmd_xsave)