1 /* PSPP - computes sample statistics.
2 Copyright (C) 2006 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 /* Utility commands acceptable anywhere. */
21 DEF_CMD (S_ANY, F_ENHANCED, "CLOSE FILE HANDLE", cmd_close_file_handle)
22 DEF_CMD (S_ANY, F_KEEP_FINAL_TOKEN, "COMMENT", cmd_comment)
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, F_KEEP_FINAL_TOKEN, "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, "N OF CASES", cmd_n_of_cases)
32 DEF_CMD (S_ANY, 0, "N", cmd_n_of_cases)
33 DEF_CMD (S_ANY, 0, "NEW FILE", cmd_new_file)
34 DEF_CMD (S_ANY, 0, "PERMISSIONS", cmd_permissions)
35 DEF_CMD (S_ANY, 0, "Q", cmd_finish)
36 DEF_CMD (S_ANY, 0, "QUIT", cmd_finish)
37 DEF_CMD (S_ANY, 0, "SET", cmd_set)
38 DEF_CMD (S_ANY, 0, "SHOW", cmd_show)
39 DEF_CMD (S_ANY, F_KEEP_FINAL_TOKEN, "SUBTITLE", cmd_subtitle)
40 DEF_CMD (S_ANY, 0, "SYSFILE INFO", cmd_sysfile_info)
41 DEF_CMD (S_ANY, F_KEEP_FINAL_TOKEN, "TITLE", cmd_title)
43 /* Commands that define (or replace) the active file. */
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, "IMPORT", cmd_import)
47 DEF_CMD (S_INITIAL | S_DATA, 0, "INPUT PROGRAM", cmd_input_program)
48 DEF_CMD (S_INITIAL | S_DATA, 0, "MATRIX DATA", cmd_matrix_data)
50 /* Transformations and utilities that may appear after active
51 file definition or within INPUT PROGRAM. */
52 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "ADD VALUE LABELS", cmd_add_value_labels)
53 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "APPLY DICTIONARY", cmd_apply_dictionary)
54 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "BREAK", cmd_break)
55 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "COMPUTE", cmd_compute)
56 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DISPLAY", cmd_display)
57 DEF_CMD (S_DATA | S_INPUT_PROGRAM, F_KEEP_FINAL_TOKEN, "DOCUMENT", cmd_document)
58 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DO IF", cmd_do_if)
59 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DO REPEAT", cmd_do_repeat)
60 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "END REPEAT", cmd_end_repeat)
61 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "DROP DOCUMENTS", cmd_drop_documents)
62 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "ELSE IF", cmd_else_if)
63 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "ELSE", cmd_else)
64 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "END IF", cmd_end_if)
65 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "END LOOP", cmd_end_loop)
66 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "FORMATS", cmd_formats)
67 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "IF", cmd_if)
68 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "LEAVE", cmd_leave)
69 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "LOOP", cmd_loop)
70 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "MISSING VALUES", cmd_missing_values)
71 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "NUMERIC", cmd_numeric)
72 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "PRINT EJECT", cmd_print_eject)
73 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "PRINT FORMATS", cmd_print_formats)
74 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "PRINT SPACE", cmd_print_space)
75 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "PRINT", cmd_print)
76 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "RECODE", cmd_recode)
77 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "SELECT IF", cmd_select_if)
78 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "SPLIT FILE", cmd_split_file)
79 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "STRING", cmd_string)
80 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VALUE LABELS", cmd_value_labels)
81 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VARIABLE ALIGNMENT", cmd_variable_alignment)
82 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VARIABLE LABELS", cmd_variable_labels)
83 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VARIABLE LEVEL", cmd_variable_level)
84 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VARIABLE WIDTH", cmd_variable_width)
85 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "VECTOR", cmd_vector)
86 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "WEIGHT", cmd_weight)
87 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "WRITE FORMATS", cmd_write_formats)
88 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "WRITE", cmd_write)
89 DEF_CMD (S_DATA | S_INPUT_PROGRAM, F_ENHANCED, "XEXPORT", cmd_xexport)
90 DEF_CMD (S_DATA | S_INPUT_PROGRAM, 0, "XSAVE", cmd_xsave)
92 /* Commands that may appear after active file definition. */
93 DEF_CMD (S_DATA, 0, "AGGREGATE", cmd_aggregate)
94 DEF_CMD (S_DATA, 0, "AUTORECODE", cmd_autorecode)
95 DEF_CMD (S_DATA, F_KEEP_FINAL_TOKEN, "BEGIN DATA", cmd_begin_data)
96 DEF_CMD (S_DATA, 0, "CORRELATIONS", cmd_correlations)
97 DEF_CMD (S_DATA, 0, "COUNT", cmd_count)
98 DEF_CMD (S_DATA, 0, "CROSSTABS", cmd_crosstabs)
99 DEF_CMD (S_DATA, 0, "DESCRIPTIVES", cmd_descriptives)
100 DEF_CMD (S_DATA, 0, "EXAMINE", cmd_examine)
101 DEF_CMD (S_DATA, 0, "EXECUTE", cmd_execute)
102 DEF_CMD (S_DATA, 0, "EXPORT", cmd_export)
103 DEF_CMD (S_DATA, 0, "FILTER", cmd_filter)
104 DEF_CMD (S_DATA, 0, "FLIP", cmd_flip)
105 DEF_CMD (S_DATA, 0, "FREQUENCIES", cmd_frequencies)
106 DEF_CMD (S_DATA, 0, "LIST", cmd_list)
107 DEF_CMD (S_DATA, 0, "MATCH FILES", cmd_match_files)
108 DEF_CMD (S_DATA, 0, "MEANS", cmd_means)
109 DEF_CMD (S_DATA, 0, "MODIFY VARS", cmd_modify_vars)
110 DEF_CMD (S_DATA, 0, "ONEWAY", cmd_oneway)
111 DEF_CMD (S_DATA, 0, "PEARSON CORRELATIONS", cmd_correlations)
112 DEF_CMD (S_DATA, 0, "REGRESSION", cmd_regression)
113 DEF_CMD (S_DATA, 0, "RENAME VARIABLES", cmd_rename_variables)
114 DEF_CMD (S_DATA, 0, "SAMPLE", cmd_sample)
115 DEF_CMD (S_DATA, 0, "SAVE", cmd_save)
116 DEF_CMD (S_DATA, 0, "SORT CASES", cmd_sort_cases)
117 DEF_CMD (S_DATA, 0, "SORT", cmd_sort_cases)
118 DEF_CMD (S_DATA, 0, "T-TEST", cmd_t_test)
119 DEF_CMD (S_DATA, 0, "TEMPORARY", cmd_temporary)
120 DEF_CMD (S_DATA, 0, "USE", cmd_use)
122 /* Commands valid only with INPUT PROGRAM. */
123 DEF_CMD (S_INPUT_PROGRAM, 0, "END CASE", cmd_end_case)
124 DEF_CMD (S_INPUT_PROGRAM, 0, "END FILE", cmd_end_file)
125 DEF_CMD (S_INPUT_PROGRAM, 0, "END INPUT PROGRAM", cmd_end_input_program)
126 DEF_CMD (S_INPUT_PROGRAM, 0, "REREAD", cmd_reread)
128 /* Commands for testing PSPP. */
129 DEF_CMD (S_ANY, F_TESTING, "DEBUG CASEFILE", cmd_debug_casefile)
130 DEF_CMD (S_ANY, F_TESTING, "DEBUG EVALUATE", cmd_debug_evaluate)
131 DEF_CMD (S_ANY, F_TESTING, "DEBUG MOMENTS", cmd_debug_moments)
132 DEF_CMD (S_ANY, F_TESTING, "DEBUG POOL", cmd_debug_pool)
134 /* Unimplemented commands. */
135 UNIMPL_CMD ("ACF", "Autocorrelation function")
136 UNIMPL_CMD ("ADD FILES", "Add files to dictionary")
137 UNIMPL_CMD ("ALSCAL", "Multidimensional scaling")
138 UNIMPL_CMD ("ANOVA", "Factorial analysis of variance")
139 UNIMPL_CMD ("CASEPLOT", "Plot time series")
140 UNIMPL_CMD ("CASESTOVARS", "Restructure complex data")
141 UNIMPL_CMD ("CCF", "Time series cross correlation")
142 UNIMPL_CMD ("CLEAR TRANSFORMATIONS", "Clears transformations from active file")
143 UNIMPL_CMD ("CLUSTER", "Hierachial clustering")
144 UNIMPL_CMD ("CONJOINT", "Analyse full concept data")
145 UNIMPL_CMD ("COXREG", "Cox proportional hazards regression")
146 UNIMPL_CMD ("CREATE", "Create time series data")
147 UNIMPL_CMD ("CURVEFIT", "Fit curve to line plot")
148 UNIMPL_CMD ("DATE", "Create time series data")
149 UNIMPL_CMD ("DISCRIMINANT", "Linear discriminant analysis")
150 UNIMPL_CMD ("EDIT", "obsolete")
151 UNIMPL_CMD ("END FILE TYPE", "Ends complex data input")
152 UNIMPL_CMD ("FACTOR", "Factor analysis")
153 UNIMPL_CMD ("FILE TYPE", "Complex data input")
154 UNIMPL_CMD ("FIT", "Goodness of Fit")
155 UNIMPL_CMD ("GET TRANSLATE", "Read other file formats")
156 UNIMPL_CMD ("GLM", "General Linear Model")
157 UNIMPL_CMD ("GRAPH", "Draw graphs")
158 UNIMPL_CMD ("IGRAPH", "Interactive graphs")
159 UNIMPL_CMD ("INFO", "Local Documentation")
160 UNIMPL_CMD ("KEYED DATA LIST", "Read nonsequential data")
161 UNIMPL_CMD ("KM", "Kaplan-Meier")
162 UNIMPL_CMD ("LOGISTIC REGRESSION", "Regression Analysis")
163 UNIMPL_CMD ("MCONVERT", "Convert covariance/correlation matrices")
164 UNIMPL_CMD ("MULT RESPONSE", "Multiple reponse analysis")
165 UNIMPL_CMD ("MVA", "Missing value analysis")
166 UNIMPL_CMD ("NLR", "Non Linear Regression")
167 UNIMPL_CMD ("NONPAR CORR", "Nonparametric correlation")
168 UNIMPL_CMD ("NPAR TESTS", "Nonparametric tests")
169 UNIMPL_CMD ("NUMBERED", "")
170 UNIMPL_CMD ("PACF", "Partial autocorrelation")
171 UNIMPL_CMD ("PARTIAL CORR", "Partial correlation")
172 UNIMPL_CMD ("POINT", "Marker in keyed file")
173 UNIMPL_CMD ("PPLOT", "Plot time series variables")
174 UNIMPL_CMD ("PREDICT", "Specify forecast period")
175 UNIMPL_CMD ("PRESERVE", "Push settings")
176 UNIMPL_CMD ("PROBIT", "Probit analysis")
177 UNIMPL_CMD ("PROCEDURE OUTPUT", "Specify output file")
178 UNIMPL_CMD ("PROXIMITIES", "Pairwise similarity")
179 UNIMPL_CMD ("QUICK CLUSTER", "Fast clustering")
180 UNIMPL_CMD ("RANK", "Create rank scores")
181 UNIMPL_CMD ("RECORD TYPE", "Defines a type of record within FILE TYPE")
182 UNIMPL_CMD ("REFORMAT", "Read obsolete files")
183 UNIMPL_CMD ("REPEATING DATA", "Specify multiple cases per input record")
184 UNIMPL_CMD ("REPORT", "Pretty print working file")
185 UNIMPL_CMD ("RESTORE", "Restore settings")
186 UNIMPL_CMD ("RMV", "Replace missing values")
187 UNIMPL_CMD ("ROC", "Receiver operating characteristic")
188 UNIMPL_CMD ("SAVE TRANSLATE", "Save to foriegn format")
189 UNIMPL_CMD ("SCRIPT", "Run script file")
190 UNIMPL_CMD ("SPCHART", "Plot control charts")
191 UNIMPL_CMD ("SUMMARIZE", "Univariate statistics")
192 UNIMPL_CMD ("SURVIVAL", "Survival analysis")
193 UNIMPL_CMD ("TSET", "Set time sequence variables")
194 UNIMPL_CMD ("TSHOW", "Show time sequence variables")
195 UNIMPL_CMD ("TSPLOT", "Plot time sequence variables")
196 UNIMPL_CMD ("UNIANOVA", "Univariate analysis")
197 UNIMPL_CMD ("UNNUMBERED", "obsolete")
198 UNIMPL_CMD ("UPDATE", "Update working file")
199 UNIMPL_CMD ("VARSTOCASES", "Restructure complex data")
200 UNIMPL_CMD ("VERIFY", "Report time series")