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