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 UNIMPL ("CLUSTER", ERRO, ERRO, ERRO, ERRO, "Hierachial clustering")
42 DEFCMD ("COMPUTE", ERRO, INPU, TRAN, TRAN, cmd_compute)
43 UNIMPL ("CONJOINT", ERRO, ERRO, ERRO, ERRO, "Analyse full concept data")
44 DEFCMD ("CORRELATIONS", ERRO, ERRO, PROC, PROC, cmd_correlations)
45 DEFCMD ("COUNT", ERRO, INPU, TRAN, TRAN, cmd_count)
46 UNIMPL ("COXREG", ERRO, ERRO, ERRO, ERRO, "Cox proportional hazards regression")
47 UNIMPL ("CREATE", ERRO, ERRO, ERRO, ERRO, "Create time series data")
48 DEFCMD ("CROSSTABS", ERRO, ERRO, PROC, PROC, cmd_crosstabs)
49 UNIMPL ("CURVEFIT", ERRO, ERRO, ERRO, ERRO, "Fit curve to line plot")
50 DEFCMD ("DATA LIST", TRAN, INPU, TRAN, TRAN, cmd_data_list)
51 UNIMPL ("DATE", ERRO, ERRO, ERRO, ERRO, "Create time series data")
52 DBGCMD ("DEBUG CASEFILE", INIT, INPU, TRAN, PROC, cmd_debug_casefile)
53 DBGCMD ("DEBUG EVALUATE", INIT, INPU, TRAN, PROC, cmd_debug_evaluate)
54 DBGCMD ("DEBUG MOMENTS", INIT, INPU, TRAN, PROC, cmd_debug_moments)
55 DBGCMD ("DEBUG POOL", INIT, INPU, TRAN, PROC, cmd_debug_pool)
56 DEFCMD ("DESCRIPTIVES", ERRO, ERRO, PROC, PROC, cmd_descriptives)
57 UNIMPL ("DISCRIMINANT", ERRO, ERRO, ERRO, ERRO, "Linear discriminant analysis")
58 DEFCMD ("DISPLAY", ERRO, INPU, TRAN, PROC, cmd_display)
59 SPCCMD ("DOCUMENT", ERRO, INPU, TRAN, TRAN, cmd_document)
60 DEFCMD ("DO IF", ERRO, INPU, TRAN, TRAN, cmd_do_if)
61 DEFCMD ("DO REPEAT", ERRO, INPU, TRAN, TRAN, cmd_do_repeat)
62 DEFCMD ("DROP DOCUMENTS", INIT, INPU, TRAN, PROC, cmd_drop_documents)
63 DEFCMD ("ECHO", INIT, INPU, TRAN, PROC, cmd_echo)
64 UNIMPL ("EDIT", ERRO, ERRO, ERRO, ERRO, "obsolete")
65 DEFCMD ("ELSE", ERRO, INPU, TRAN, TRAN, cmd_else)
66 DEFCMD ("ELSE IF", ERRO, INPU, TRAN, TRAN, cmd_else_if)
67 DEFCMD ("END CASE", ERRO, INPU, ERRO, ERRO, cmd_end_case)
68 DEFCMD ("END FILE", ERRO, INPU, ERRO, ERRO, cmd_end_file)
69 UNIMPL ("END FILE TYPE", ERRO, TRAN, ERRO, ERRO, "Ends complex data input")
70 DEFCMD ("END IF", ERRO, INPU, TRAN, TRAN, cmd_end_if)
71 DEFCMD ("END INPUT PROGRAM", ERRO, TRAN, ERRO, ERRO, cmd_end_input_program)
72 DEFCMD ("END LOOP", ERRO, INPU, TRAN, TRAN, cmd_end_loop)
73 DEFCMD ("END REPEAT", ERRO, INPU, TRAN, TRAN, cmd_end_repeat)
74 DEFCMD ("ERASE", INIT, INPU, TRAN, PROC, cmd_erase)
75 DEFCMD ("EXAMINE", ERRO, ERRO, PROC, PROC, cmd_examine)
76 DEFCMD ("EXECUTE", ERRO, ERRO, PROC, PROC, cmd_execute)
77 DEFCMD ("EXIT", INIT, INPU, TRAN, PROC, cmd_exit)
78 DEFCMD ("EXPORT", ERRO, ERRO, PROC, PROC, cmd_export)
79 UNIMPL ("FACTOR", ERRO, ERRO, ERRO, ERRO, "Factor analysis")
80 DEFCMD ("FILE HANDLE", INIT, INPU, TRAN, PROC, cmd_file_handle)
81 SPCCMD ("FILE LABEL", INIT, INPU, TRAN, PROC, cmd_file_label)
82 UNIMPL ("FILE TYPE", INPU, ERRO, INPU, INPU, "Complex data input")
83 DEFCMD ("FILTER", ERRO, ERRO, TRAN, TRAN, cmd_filter)
84 DEFCMD ("FINISH", INIT, INPU, TRAN, PROC, cmd_finish)
85 UNIMPL ("FIT", ERRO, ERRO, ERRO, ERRO, "Goodness of Fit")
86 DEFCMD ("FLIP", ERRO, ERRO, PROC, PROC, cmd_flip)
87 DEFCMD ("FORMATS", INIT, INPU, TRAN, PROC, cmd_formats)
88 DEFCMD ("FREQUENCIES", ERRO, ERRO, PROC, PROC, cmd_frequencies)
89 DEFCMD ("GET", TRAN, ERRO, TRAN, TRAN, cmd_get)
90 UNIMPL ("GET TRANSLATE", ERRO, ERRO, ERRO, ERRO, "Read other file formats")
91 UNIMPL ("GLM", ERRO, ERRO, ERRO, ERRO, "General Linear Model")
92 UNIMPL ("GRAPH", ERRO, ERRO, ERRO, ERRO, "Draw graphs")
93 DEFCMD ("HOST", INIT, INPU, TRAN, PROC, cmd_host)
94 DEFCMD ("IF", ERRO, INPU, TRAN, TRAN, cmd_if)
95 UNIMPL ("IGRAPH", ERRO, ERRO, ERRO, ERRO, "Interactive graphs")
96 DEFCMD ("IMPORT", TRAN, ERRO, TRAN, TRAN, cmd_import)
97 DEFCMD ("INCLUDE", INIT, INPU, TRAN, PROC, cmd_include)
98 UNIMPL ("INFO", ERRO, ERRO, ERRO, ERRO, "Local Documentation")
99 DEFCMD ("INPUT PROGRAM", INPU, ERRO, INPU, INPU, cmd_input_program)
100 UNIMPL ("KEYED DATA LIST", ERRO, ERRO, ERRO, ERRO, "Read nonsequential data")
101 UNIMPL ("KM", ERRO, ERRO, ERRO, ERRO, "Kaplan-Meier")
102 DEFCMD ("LEAVE", ERRO, INPU, TRAN, TRAN, cmd_leave)
103 DEFCMD ("LIST", ERRO, ERRO, PROC, PROC, cmd_list)
104 UNIMPL ("LOGISTIC REGRESSION", ERRO, ERRO, ERRO, ERRO, "Regression Analysis")
105 DEFCMD ("LOOP", ERRO, INPU, TRAN, TRAN, cmd_loop)
106 DEFCMD ("MATCH FILES", TRAN, ERRO, TRAN, PROC, cmd_match_files)
107 DEFCMD ("MATRIX DATA", TRAN, ERRO, TRAN, TRAN, cmd_matrix_data)
108 UNIMPL ("MCONVERT", ERRO, ERRO, ERRO, ERRO, "Convert covariance/correlation matrices")
109 DEFCMD ("MEANS", ERRO, ERRO, PROC, PROC, cmd_means)
110 DEFCMD ("MISSING VALUES", ERRO, INPU, TRAN, TRAN, cmd_missing_values)
111 DEFCMD ("MODIFY VARS", ERRO, ERRO, TRAN, PROC, cmd_modify_vars)
112 UNIMPL ("MULT RESPONSE", ERRO, ERRO, ERRO, ERRO, "Multiple reponse analysis")
113 UNIMPL ("MVA", ERRO, ERRO, ERRO, ERRO, "Missing value analysis")
114 DEFCMD ("NEW FILE", INIT, ERRO, INIT, INIT, cmd_new_file)
115 DEFCMD ("N", INIT, INPU, TRAN, TRAN, cmd_n_of_cases)
116 DEFCMD ("N OF CASES", INIT, INPU, TRAN, TRAN, cmd_n_of_cases)
117 UNIMPL ("NLR", ERRO, ERRO, ERRO, ERRO, "Non Linear Regression")
118 UNIMPL ("NONPAR CORR", ERRO, ERRO, ERRO, ERRO, "Nonparametric correlation")
119 UNIMPL ("NPAR TESTS", ERRO, ERRO, ERRO, ERRO, "Nonparametric tests")
120 UNIMPL ("NUMBERED", ERRO, ERRO, ERRO, ERRO, "")
121 DEFCMD ("NUMERIC", ERRO, INPU, TRAN, TRAN, cmd_numeric)
122 DEFCMD ("ONEWAY", ERRO, ERRO, PROC, PROC, cmd_oneway)
123 UNIMPL ("PACF", ERRO, ERRO, ERRO, ERRO, "Partial autocorrelation")
124 UNIMPL ("PARTIAL CORR", ERRO, ERRO, ERRO, ERRO, "Partial correlation")
125 DEFCMD ("PEARSON CORRELATIONS", ERRO, ERRO, PROC, PROC, cmd_correlations)
126 DEFCMD ("PERMISSIONS", INIT, INPU, TRAN, PROC, cmd_permissions)
127 UNIMPL ("POINT", ERRO, ERRO, ERRO, ERRO, "Marker in keyed file")
128 UNIMPL ("PPLOT", ERRO, ERRO, ERRO, ERRO, "Plot time series variables")
129 UNIMPL ("PREDICT", ERRO, ERRO, ERRO, ERRO, "Specify forecast period")
130 UNIMPL ("PRESERVE", ERRO, ERRO, ERRO, ERRO, "Push settings")
131 DEFCMD ("PRINT EJECT", ERRO, INPU, TRAN, TRAN, cmd_print_eject)
132 DEFCMD ("PRINT", ERRO, INPU, TRAN, TRAN, cmd_print)
133 DEFCMD ("PRINT FORMATS", ERRO, INPU, TRAN, TRAN, cmd_print_formats)
134 DEFCMD ("PRINT SPACE", ERRO, INPU, TRAN, TRAN, cmd_print_space)
135 UNIMPL ("PROCEDURE OUTPUT", ERRO, ERRO, ERRO, ERRO, "Specify output file")
136 UNIMPL ("PROBIT", ERRO, ERRO, ERRO, ERRO, "Probit analysis")
137 DEFCMD ("PROCESS IF", ERRO, ERRO, TRAN, TRAN, cmd_process_if)
138 UNIMPL ("PROXIMITIES", ERRO, ERRO, ERRO, ERRO, "Pairwise similarity")
139 DEFCMD ("Q", INIT, INPU, TRAN, PROC, cmd_exit)
140 UNIMPL ("QUICK CLUSTER", ERRO, ERRO, ERRO, ERRO, "Fast clustering")
141 DEFCMD ("QUIT", INIT, INPU, TRAN, PROC, cmd_exit)
142 UNIMPL ("RANK", ERRO, ERRO, ERRO, ERRO, "Create rank scores")
143 DEFCMD ("RECODE", ERRO, INPU, TRAN, TRAN, cmd_recode)
144 DEFCMD ("RECORD TYPE", ERRO, INPU, ERRO, ERRO, cmd_record_type)
145 UNIMPL ("REFORMAT", ERRO, ERRO, ERRO, ERRO, "Read obsolete files")
146 UNIMPL ("REGRESSION", ERRO, ERRO, ERRO, ERRO, "Compute regression coefficients")
147 DEFCMD ("RENAME VARIABLES", ERRO, INPU, TRAN, PROC, cmd_rename_variables)
148 UNIMPL ("REPEATING DATA", ERRO, INPU, ERRO, ERRO, "Specify multiple cases per input record")
149 UNIMPL ("REPORT", ERRO, ERRO, ERRO, ERRO, "Pretty print working file")
150 DEFCMD ("REREAD", ERRO, INPU, ERRO, ERRO, cmd_reread)
151 UNIMPL ("RESTORE", ERRO, ERRO, ERRO, ERRO, "Restore settings")
152 UNIMPL ("ROC", ERRO, ERRO, ERRO, ERRO, "Receiver operating characteristic")
153 UNIMPL ("RMV", ERRO, ERRO, ERRO, ERRO, "Replace missing values")
154 DEFCMD ("SAMPLE", ERRO, ERRO, TRAN, TRAN, cmd_sample)
155 DEFCMD ("SAVE", ERRO, ERRO, PROC, PROC, cmd_save)
156 UNIMPL ("SAVE TRANSLATE", ERRO, ERRO, ERRO, ERRO, "Save to foriegn format")
157 UNIMPL ("SCRIPT", ERRO, ERRO, ERRO, ERRO, "Run script file")
158 DEFCMD ("SELECT IF", ERRO, ERRO, TRAN, TRAN, cmd_select_if)
159 DEFCMD ("SET", INIT, INPU, TRAN, PROC, cmd_set)
160 DEFCMD ("SHOW", INIT, INPU, TRAN, PROC, cmd_show)
161 DEFCMD ("SORT CASES", ERRO, ERRO, PROC, PROC, cmd_sort_cases)
162 DEFCMD ("SORT", ERRO, ERRO, PROC, PROC, cmd_sort_cases)
163 UNIMPL ("SPCHART", ERRO, ERRO, ERRO, ERRO, "Plot control charts")
164 DEFCMD ("SPLIT FILE", ERRO, INPU, TRAN, TRAN, cmd_split_file)
165 DEFCMD ("STRING", ERRO, INPU, TRAN, TRAN, cmd_string)
166 SPCCMD ("SUBTITLE", INIT, INPU, TRAN, PROC, cmd_subtitle)
167 UNIMPL ("SUMMARIZE", ERRO, ERRO, ERRO, ERRO, "Univariate statistics")
168 UNIMPL ("SURVIVAL", ERRO, ERRO, ERRO, ERRO, "Survival analysis")
169 DEFCMD ("SYSFILE INFO", INIT, INPU, TRAN, PROC, cmd_sysfile_info)
170 DEFCMD ("TEMPORARY", ERRO, ERRO, TRAN, TRAN, cmd_temporary)
171 SPCCMD ("TITLE", INIT, INPU, TRAN, PROC, cmd_title)
172 UNIMPL ("TSET", ERRO, ERRO, ERRO, ERRO, "Set time sequence variables")
173 UNIMPL ("TSHOW", ERRO, ERRO, ERRO, ERRO, "Show time sequence variables")
174 UNIMPL ("TSPLOT", ERRO, ERRO, ERRO, ERRO, "Plot time sequence variables")
175 DEFCMD ("T-TEST", ERRO, ERRO, PROC, PROC, cmd_t_test)
176 UNIMPL ("UNIANOVA", ERRO, ERRO, ERRO, ERRO, "Univariate analysis")
177 UNIMPL ("UNNUMBERED", ERRO, ERRO, ERRO, ERRO, "obsolete")
178 UNIMPL ("UPDATE", ERRO, ERRO, ERRO, ERRO, "Update working file")
179 DEFCMD ("USE", ERRO, ERRO, TRAN, TRAN, cmd_use)
180 DEFCMD ("VALUE LABELS", ERRO, INPU, TRAN, TRAN, cmd_value_labels)
181 DEFCMD ("VARIABLE LABELS", ERRO, INPU, TRAN, TRAN, cmd_variable_labels)
182 DEFCMD ("VARIABLE ALIGNMENT", ERRO, INPU, TRAN, TRAN, cmd_variable_alignment)
183 DEFCMD ("VARIABLE LEVEL", ERRO, INPU, TRAN, TRAN, cmd_variable_level)
184 DEFCMD ("VARIABLE WIDTH", ERRO, INPU, TRAN, TRAN, cmd_variable_width)
185 UNIMPL ("VARSTOCASES", ERRO, ERRO, ERRO, ERRO, "Restructure complex data")
186 DEFCMD ("VECTOR", ERRO, INPU, TRAN, TRAN, cmd_vector)
187 UNIMPL ("VERIFY", ERRO, ERRO, ERRO, ERRO, "Report time series")
188 DEFCMD ("WEIGHT", ERRO, INPU, TRAN, TRAN, cmd_weight)
189 DEFCMD ("WRITE", ERRO, INPU, TRAN, TRAN, cmd_write)
190 DEFCMD ("WRITE FORMATS", ERRO, INPU, TRAN, TRAN, cmd_write_formats)
191 DEFCMD ("XSAVE", ERRO, INPU, TRAN, TRAN, cmd_xsave)