1 /* PSPP - a program for statistical analysis.
2 Copyright (C) 2006, 2009, 2010, 2011, 2013 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17 /* Utility commands acceptable anywhere. */
18 DEF_CMD (S_ANY, F_ENHANCED, "CLOSE FILE HANDLE", cmd_close_file_handle)
19 DEF_CMD (S_ANY, 0, "CACHE", cmd_cache)
20 DEF_CMD (S_ANY, 0, "CD", cmd_cd)
21 DEF_CMD (S_ANY, 0, "DO REPEAT", cmd_do_repeat)
22 DEF_CMD (S_ANY, 0, "END REPEAT", cmd_end_repeat)
23 DEF_CMD (S_ANY, 0, "ECHO", cmd_echo)
24 DEF_CMD (S_ANY, 0, "ERASE", cmd_erase)
25 DEF_CMD (S_ANY, 0, "EXIT", cmd_finish)
26 DEF_CMD (S_ANY, 0, "FILE HANDLE", cmd_file_handle)
27 DEF_CMD (S_ANY, 0, "FILE LABEL", cmd_file_label)
28 DEF_CMD (S_ANY, 0, "FINISH", cmd_finish)
29 DEF_CMD (S_ANY, 0, "HOST", cmd_host)
30 DEF_CMD (S_ANY, 0, "INCLUDE", cmd_include)
31 DEF_CMD (S_ANY, 0, "INSERT", cmd_insert)
32 DEF_CMD (S_ANY, 0, "N OF CASES", cmd_n_of_cases)
33 DEF_CMD (S_ANY, F_ABBREV, "N", cmd_n_of_cases)
34 DEF_CMD (S_ANY, 0, "NEW FILE", cmd_new_file)
35 DEF_CMD (S_ANY, 0, "OUTPUT", cmd_output)
36 DEF_CMD (S_ANY, 0, "PERMISSIONS", cmd_permissions)
37 DEF_CMD (S_ANY, 0, "PRESERVE", cmd_preserve)
38 DEF_CMD (S_ANY, F_ABBREV, "Q", cmd_finish)
39 DEF_CMD (S_ANY, 0, "QUIT", cmd_finish)
40 DEF_CMD (S_ANY, 0, "RESTORE", cmd_restore)
41 DEF_CMD (S_ANY, 0, "SET", cmd_set)
42 DEF_CMD (S_ANY, 0, "SHOW", cmd_show)
43 DEF_CMD (S_ANY, 0, "SUBTITLE", cmd_subtitle)
44 DEF_CMD (S_ANY, 0, "SYSFILE INFO", cmd_sysfile_info)
45 DEF_CMD (S_ANY, 0, "TITLE", cmd_title)
47 /* Commands that define (or replace) the active dataset. */
48 DEF_CMD (S_INITIAL | S_DATA, 0, "ADD FILES", cmd_add_files)
49 DEF_CMD (S_INITIAL | S_DATA | S_INPUT_PROGRAM | S_FILE_TYPE, 0, "DATA LIST", cmd_data_list)
50 DEF_CMD (S_INITIAL | S_DATA, 0, "GET", cmd_get)
51 DEF_CMD (S_INITIAL | S_DATA, 0, "GET DATA", cmd_get_data)
52 DEF_CMD (S_INITIAL | S_DATA, 0, "IMPORT", cmd_import)
53 DEF_CMD (S_INITIAL | S_DATA, 0, "INPUT PROGRAM", cmd_input_program)
54 DEF_CMD (S_INITIAL | S_DATA, 0, "MATCH FILES", cmd_match_files)
55 DEF_CMD (S_INITIAL | S_DATA, 0, "UPDATE", cmd_update)
56 DEF_CMD (S_INITIAL | S_DATA, 0, "DATASET ACTIVATE", cmd_dataset_activate)
57 DEF_CMD (S_INITIAL | S_DATA, 0, "DATASET DECLARE", cmd_dataset_declare)
58 DEF_CMD (S_INITIAL | S_DATA, 0, "DATASET CLOSE", cmd_dataset_close)
59 DEF_CMD (S_INITIAL | S_DATA, 0, "DATASET COPY", cmd_dataset_copy)
60 DEF_CMD (S_INITIAL | S_DATA, 0, "DATASET NAME", cmd_dataset_name)
61 DEF_CMD (S_INITIAL | S_DATA, 0, "DATASET DISPLAY", cmd_dataset_display)
63 /* Transformations and utilities that may appear after active
64 file definition or within INPUT PROGRAM. */
65 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "ADD VALUE LABELS", cmd_add_value_labels)
66 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "ADD DOCUMENT", cmd_add_documents)
67 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "APPLY DICTIONARY", cmd_apply_dictionary)
68 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "BREAK", cmd_break)
69 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "COMPUTE", cmd_compute)
70 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DATAFILE ATTRIBUTE", cmd_datafile_attribute)
71 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DISPLAY", cmd_display)
72 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DOCUMENT", cmd_document)
73 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DO IF", cmd_do_if)
74 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DROP DOCUMENTS", cmd_drop_documents)
75 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "ELSE IF", cmd_else_if)
76 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "ELSE", cmd_else)
77 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "END IF", cmd_end_if)
78 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "END LOOP", cmd_end_loop)
79 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "FORMATS", cmd_formats)
80 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "IF", cmd_if)
81 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "LEAVE", cmd_leave)
82 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "LOOP", cmd_loop)
83 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "MISSING VALUES", cmd_missing_values)
84 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "MRSETS", cmd_mrsets)
85 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "NUMERIC", cmd_numeric)
86 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "PRINT EJECT", cmd_print_eject)
87 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "PRINT FORMATS", cmd_print_formats)
88 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "PRINT SPACE", cmd_print_space)
89 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "PRINT", cmd_print)
90 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "RECODE", cmd_recode)
91 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "SELECT IF", cmd_select_if)
92 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "SPLIT FILE", cmd_split_file)
93 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "STRING", cmd_string)
94 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VALUE LABELS", cmd_value_labels)
95 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VARIABLE ALIGNMENT", cmd_variable_alignment)
96 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VARIABLE ATTRIBUTE", cmd_variable_attribute)
97 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VARIABLE LABELS", cmd_variable_labels)
98 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VARIABLE LEVEL", cmd_variable_level)
99 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VARIABLE ROLE", cmd_variable_role)
100 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VARIABLE WIDTH", cmd_variable_width)
101 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VECTOR", cmd_vector)
102 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "WEIGHT", cmd_weight)
103 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "WRITE FORMATS", cmd_write_formats)
104 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "WRITE", cmd_write)
105 DEF_CMD (S_DATA | S_INPUT_PROGRAM, F_ENHANCED, "XEXPORT", cmd_xexport)
106 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "XSAVE", cmd_xsave)
108 /* Commands that may appear after active dataset definition. */
109 DEF_CMD (S_DATA, 0, "AGGREGATE", cmd_aggregate)
110 DEF_CMD (S_DATA, 0, "AUTORECODE", cmd_autorecode)
111 DEF_CMD (S_DATA, 0, "BEGIN DATA", cmd_begin_data)
112 DEF_CMD (S_DATA, 0, "COUNT", cmd_count)
113 DEF_CMD (S_DATA, 0, "CROSSTABS", cmd_crosstabs)
114 DEF_CMD (S_DATA, 0, "CORRELATIONS", cmd_correlation)
115 DEF_CMD (S_DATA, 0, "DELETE VARIABLES", cmd_delete_variables)
116 DEF_CMD (S_DATA, 0, "DESCRIPTIVES", cmd_descriptives)
117 DEF_CMD (S_DATA, 0, "EXAMINE", cmd_examine)
118 DEF_CMD (S_DATA, 0, "EXECUTE", cmd_execute)
119 DEF_CMD (S_DATA, 0, "EXPORT", cmd_export)
120 DEF_CMD (S_DATA, 0, "FACTOR", cmd_factor)
121 DEF_CMD (S_DATA, 0, "FILTER", cmd_filter)
122 DEF_CMD (S_DATA, 0, "FLIP", cmd_flip)
123 DEF_CMD (S_DATA, 0, "FREQUENCIES", cmd_frequencies)
124 DEF_CMD (S_DATA, 0, "GLM", cmd_glm)
125 DEF_CMD (S_DATA, 0, "GRAPH", cmd_graph)
126 DEF_CMD (S_DATA, 0, "LIST", cmd_list)
127 DEF_CMD (S_DATA, 0, "LOGISTIC REGRESSION", cmd_logistic)
128 DEF_CMD (S_DATA, 0, "MEANS", cmd_means)
129 DEF_CMD (S_DATA, 0, "MODIFY VARS", cmd_modify_vars)
130 DEF_CMD (S_DATA, 0, "NPAR TESTS", cmd_npar_tests)
131 DEF_CMD (S_DATA, 0, "ONEWAY", cmd_oneway)
132 DEF_CMD (S_DATA, 0, "PEARSON CORRELATIONS", cmd_correlation)
133 DEF_CMD (S_DATA, 0, "QUICK CLUSTER", cmd_quick_cluster)
134 DEF_CMD (S_DATA, 0, "RANK", cmd_rank)
135 DEF_CMD (S_DATA, 0, "REGRESSION", cmd_regression)
136 DEF_CMD (S_DATA, 0, "RELIABILITY", cmd_reliability)
137 DEF_CMD (S_DATA, 0, "RENAME VARIABLES", cmd_rename_variables)
138 DEF_CMD (S_DATA, 0, "ROC", cmd_roc)
139 DEF_CMD (S_DATA, 0, "SAMPLE", cmd_sample)
140 DEF_CMD (S_DATA, 0, "SAVE", cmd_save)
141 DEF_CMD (S_DATA, 0, "SAVE TRANSLATE", cmd_save_translate)
142 DEF_CMD (S_DATA, 0, "SORT CASES", cmd_sort_cases)
143 DEF_CMD (S_DATA, 0, "T-TEST", cmd_t_test)
144 DEF_CMD (S_DATA, 0, "TEMPORARY", cmd_temporary)
145 DEF_CMD (S_DATA, 0, "USE", cmd_use)
147 /* Commands valid only with INPUT PROGRAM. */
148 DEF_CMD (S_INPUT_PROGRAM, 0, "END CASE", cmd_end_case)
149 DEF_CMD (S_INPUT_PROGRAM, 0, "END FILE", cmd_end_file)
150 DEF_CMD (S_INPUT_PROGRAM, 0, "END INPUT PROGRAM", cmd_end_input_program)
151 DEF_CMD (S_INPUT_PROGRAM, 0, "REREAD", cmd_reread)
153 /* Commands for testing PSPP. */
154 DEF_CMD (S_ANY, F_TESTING, "DEBUG EVALUATE", cmd_debug_evaluate)
155 DEF_CMD (S_ANY, F_TESTING, "DEBUG FORMAT GUESSER", cmd_debug_format_guesser)
156 DEF_CMD (S_ANY, F_TESTING, "DEBUG MOMENTS", cmd_debug_moments)
157 DEF_CMD (S_ANY, F_TESTING, "DEBUG PAPER SIZE", cmd_debug_paper_size)
158 DEF_CMD (S_ANY, F_TESTING, "DEBUG POOL", cmd_debug_pool)
159 DEF_CMD (S_ANY, F_TESTING, "DEBUG FLOAT FORMAT", cmd_debug_float_format)
160 DEF_CMD (S_ANY, F_TESTING, "DEBUG XFORM FAIL", cmd_debug_xform_fail)
162 /* Unimplemented commands. */
163 UNIMPL_CMD ("2SLS", "Two stage least squares regression")
164 UNIMPL_CMD ("ACF", "Autocorrelation function")
165 UNIMPL_CMD ("ALSCAL", "Multidimensional scaling")
166 UNIMPL_CMD ("ANACOR", "Correspondence analysis")
167 UNIMPL_CMD ("ANOVA", "Factorial analysis of variance")
168 UNIMPL_CMD ("CASEPLOT", "Plot time series")
169 UNIMPL_CMD ("CASESTOVARS", "Restructure complex data")
170 UNIMPL_CMD ("CATPCA", "Categorical principle components analysis")
171 UNIMPL_CMD ("CATREG", "Categorical regression")
172 UNIMPL_CMD ("CCF", "Time series cross correlation")
173 UNIMPL_CMD ("CLEAR TRANSFORMATIONS", "Clears transformations from active dataset")
174 UNIMPL_CMD ("CLUSTER", "Hierarchical clustering")
175 UNIMPL_CMD ("CONJOINT", "Analyse full concept data")
176 UNIMPL_CMD ("CORRESPONDENCE", "Show correspondence")
177 UNIMPL_CMD ("COXREG", "Cox proportional hazards regression")
178 UNIMPL_CMD ("CREATE", "Create time series data")
179 UNIMPL_CMD ("CSDESCRIPTIVES", "Complex samples descriptives")
180 UNIMPL_CMD ("CSGLM", "Complex samples GLM")
181 UNIMPL_CMD ("CSLOGISTIC", "Complex samples logistic regression")
182 UNIMPL_CMD ("CSPLAN", "Complex samples design")
183 UNIMPL_CMD ("CSSELECT", "Select complex samples")
184 UNIMPL_CMD ("CSTABULATE", "Tabulate complex samples")
185 UNIMPL_CMD ("CTABLES", "Display complex samples")
186 UNIMPL_CMD ("CURVEFIT", "Fit curve to line plot")
187 UNIMPL_CMD ("DATE", "Create time series data")
188 UNIMPL_CMD ("DEFINE", "Syntax macros")
189 UNIMPL_CMD ("DETECTANOMALY", "Find unusual cases")
190 UNIMPL_CMD ("DISCRIMINANT", "Linear discriminant analysis")
191 UNIMPL_CMD ("EDIT", "obsolete")
192 UNIMPL_CMD ("END FILE TYPE", "Ends complex data input")
193 UNIMPL_CMD ("FILE TYPE", "Complex data input")
194 UNIMPL_CMD ("FIT", "Goodness of Fit")
195 UNIMPL_CMD ("GENLOG", "Categorical model fitting")
196 UNIMPL_CMD ("GET TRANSLATE", "Read other file formats")
197 UNIMPL_CMD ("GGRAPH", "Custom defined graphs")
198 UNIMPL_CMD ("HILOGLINEAR", "Hierarchical loglinear models")
199 UNIMPL_CMD ("HOMALS", "Homogeneity analysis")
200 UNIMPL_CMD ("IGRAPH", "Interactive graphs")
201 UNIMPL_CMD ("INFO", "Local Documentation")
202 UNIMPL_CMD ("KEYED DATA LIST", "Read nonsequential data")
203 UNIMPL_CMD ("KM", "Kaplan-Meier")
204 UNIMPL_CMD ("LOGLINEAR", "General model fitting")
205 UNIMPL_CMD ("MANOVA", "Multivariate analysis of variance")
206 UNIMPL_CMD ("MAPS", "Geographical display")
207 UNIMPL_CMD ("MATRIX", "Matrix processing")
208 UNIMPL_CMD ("MATRIX DATA", "Matrix data input")
209 UNIMPL_CMD ("MCONVERT", "Convert covariance/correlation matrices")
210 UNIMPL_CMD ("MIXED", "Mixed linear models")
211 UNIMPL_CMD ("MODEL CLOSE", "Close server connection")
212 UNIMPL_CMD ("MODEL HANDLE", "Define server connection")
213 UNIMPL_CMD ("MODEL LIST", "Show existing models")
214 UNIMPL_CMD ("MODEL NAME", "Specify model label")
215 UNIMPL_CMD ("MULTIPLE CORRESPONDENCE", "Multiple correspondence analysis")
216 UNIMPL_CMD ("MULT RESPONSE", "Multiple response analysis")
217 UNIMPL_CMD ("MVA", "Missing value analysis")
218 UNIMPL_CMD ("NAIVEBAYES", "Small sample bayesian prediction")
219 UNIMPL_CMD ("NLR", "Non Linear Regression")
220 UNIMPL_CMD ("NOMREG", "Multinomial logistic regression")
221 UNIMPL_CMD ("NONPAR CORR", "Nonparametric correlation")
222 UNIMPL_CMD ("NUMBERED", "")
223 UNIMPL_CMD ("OLAP CUBES", "On-line analytical processing")
224 UNIMPL_CMD ("OMS", "Output management")
225 UNIMPL_CMD ("ORTHOPLAN", "Orthogonal effects design")
226 UNIMPL_CMD ("OVERALS", "Nonlinear canonical correlation")
227 UNIMPL_CMD ("PACF", "Partial autocorrelation")
228 UNIMPL_CMD ("PARTIAL CORR", "Partial correlation")
229 UNIMPL_CMD ("PLANCARDS", "Conjoint analysis planning")
230 UNIMPL_CMD ("PLUM", "Estimate ordinal regression models")
231 UNIMPL_CMD ("POINT", "Marker in keyed file")
232 UNIMPL_CMD ("PPLOT", "Plot time series variables")
233 UNIMPL_CMD ("PREDICT", "Specify forecast period")
234 UNIMPL_CMD ("PREFSCAL", "Multidimensional unfolding")
235 UNIMPL_CMD ("PRINCALS", "PCA by alternating least squares")
236 UNIMPL_CMD ("PROBIT", "Probit analysis")
237 UNIMPL_CMD ("PROCEDURE OUTPUT", "Specify output file")
238 UNIMPL_CMD ("PROXIMITIES", "Pairwise similarity")
239 UNIMPL_CMD ("PROXSCAL", "Multidimensional scaling of proximity data")
240 UNIMPL_CMD ("RATIO STATISTICS", "Descriptives of ratios")
241 UNIMPL_CMD ("READ MODEL", "Read new model")
242 UNIMPL_CMD ("RECORD TYPE", "Defines a type of record within FILE TYPE")
243 UNIMPL_CMD ("REFORMAT", "Read obsolete files")
244 UNIMPL_CMD ("REPEATING DATA", "Specify multiple cases per input record")
245 UNIMPL_CMD ("REPORT", "Pretty print working file")
246 UNIMPL_CMD ("RMV", "Replace missing values")
247 UNIMPL_CMD ("SCRIPT", "Run script file")
248 UNIMPL_CMD ("SEASON", "Estimate seasonal factors")
249 UNIMPL_CMD ("SELECTPRED", "Select predictor variables")
250 UNIMPL_CMD ("SPCHART", "Plot control charts")
251 UNIMPL_CMD ("SPECTRA", "Plot spectral density")
252 UNIMPL_CMD ("STEMLEAF", "Plot stem-and-leaf display")
253 UNIMPL_CMD ("SUMMARIZE", "Univariate statistics")
254 UNIMPL_CMD ("SURVIVAL", "Survival analysis")
255 UNIMPL_CMD ("TDISPLAY", "Display active models")
256 UNIMPL_CMD ("TREE", "Create classification tree")
257 UNIMPL_CMD ("TSAPPLY", "Apply time series model")
258 UNIMPL_CMD ("TSET", "Set time sequence variables")
259 UNIMPL_CMD ("TSHOW", "Show time sequence variables")
260 UNIMPL_CMD ("TSMODEL", "Estimate time series model")
261 UNIMPL_CMD ("TSPLOT", "Plot time sequence variables")
262 UNIMPL_CMD ("TWOSTEP CLUSTER", "Cluster observations")
263 UNIMPL_CMD ("UNIANOVA", "Univariate analysis")
264 UNIMPL_CMD ("UNNUMBERED", "obsolete")
265 UNIMPL_CMD ("VALIDATEDATA", "Identify suspicious cases")
266 UNIMPL_CMD ("VARCOMP", "Estimate variance")
267 UNIMPL_CMD ("VARSTOCASES", "Restructure complex data")
268 UNIMPL_CMD ("VERIFY", "Report time series")
269 UNIMPL_CMD ("WLS", "Weighted least squares regression")
270 UNIMPL_CMD ("XGRAPH", "High resolution charts")