Command language
267 commands and 3 preprocessor directives. ## Data management
- ADD FILES: Appends the cases of several datasets (adds cases).
- AGGREGATE: Summarises cases into groups: one row per group, or group statistics added back to every case.
- ALTER TYPE: Converts variables between numeric and string types or changes string width, reporting any values that cannot be converted.
- AUTORECODE: Recodes the distinct values of a variable (often a string) into consecutive integers 1, 2, 3 … with the old values kept as value labels.
- BEGIN DATA: Holds inline data for the preceding DATA LIST or MATRIX DATA; the lines run until END DATA.
- CASESTOVARS: Restructures long data into wide form (cases sharing an id become one case with indexed variables).
- COMPARE DATASETS: Compares the active dataset with another open dataset or file, case by case and variable by variable.
- CREATE: Creates time-series variables: cumulative sums, differences, lags, leads, moving averages, running medians, seasonal differences and T4253H smoothing.
- DATA LIST: Defines variables and reads data typed into the syntax (with BEGIN DATA) or from a text file.
- DATE: Creates date variables (YEAR_, QUARTER_, MONTH_, DATE_ …) for a time series and sets its periodicity.
- DEFINE DATES: The SPSS name for DATE: creates date and period variables (YEAR_, MONTH_, DATE_ …) for a time series.
- DELETE VARIABLES: Removes variables from the active dataset.
- EDIT CASES: Edits individual cases explicitly, so changes made in the grid, Kanban, Calendar or Form views are reproducible.
- EXPORT DATA: Writes the active dataset to another format.
- FILTER: Excludes cases from analyses without deleting them: cases whose filter variable is 0 or missing are left out.
- FLIP: Transposes the dataset: variables become cases and cases become variables.
- GENOSTAT: FASTQ quality control (SPSS 32 Transform ▸ Genomic Analysis): every FASTQ file becomes one case of a new active dataset with yield, length, base composition, Phred quality, duplication, overrepresented sequences, adapter content, low-complexity reads and FastQC-style PASS/WARN/FAIL flags.
- GET: Opens a data file as a new active dataset; the reader is chosen from the extension.
- IDENTIFY DUPLICATES: Flags the primary case and its duplicates among cases with the same values of the matching variables.
- IMPORT: Opens an SPSS portable (.por) file as the active dataset.
- IMPORT DATA: Imports a non-native file with explicit options.
- IMPORT VCF: Reads genotypes from a VCF file: samples become cases and every biallelic variant a numeric variable with the number of alternate alleles (or the DS dosage).
- MATCH FILES: Combines datasets side by side (adds variables), matching cases by key variables or by position.
- MATRIX DATA: Reads a correlation or covariance matrix (with N, means and standard deviations) into a matrix dataset that FACTOR can analyse.
- MCONVERT: Converts a matrix dataset between correlations (with standard deviations) and covariances.
- MODIFY VARS: Reorders, renames, keeps or drops variables in one command.
- N OF CASES: Keeps only the first n cases.
- ORTHOPLAN: Generates an orthogonal main-effects plan (profile cards) for conjoint analysis.
- RANK: Creates rank scores (ranks, percentiles, n-tiles, normal scores) within optional groups.
- RMV: Replaces missing values in a new variable: series mean, mean or median of nearby points, linear interpolation or linear trend.
- SAVE: Saves the active dataset as an SPSS-format .sav or .zsav file with all labels and missing values.
- SCORE: Scoring Wizard: applies a saved or just-fitted model to the active dataset and saves predictions.
- SHIFT VALUES: Creates lagged or leading copies of variables (values from earlier or later cases).
- SORT CASES: Sorts the cases of the active dataset.
- SORT VARIABLES: Reorders variables by name, label, type or measurement level.
- SPLIT FILE: Runs subsequent procedures separately for each group of cases.
- STAR JOIN: Joins a fact table with one or more lookup tables, SQL style (left outer join): every case of the FROM table is kept and gains the selected variables of its matching lookup cases.
- UPDATE: Applies transaction files to a master file by key: non-missing transaction values replace master values, and new keys become new cases.
- USE: Resets the case range used by procedures (OrcStat supports USE ALL).
- VARSTOCASES: Restructures wide data into long form (several variables become several cases).
- WEIGHT: Weights cases by a frequency weight variable.
- XSAVE: Saves the active dataset; the same as SAVE (OrcStat writes at once rather than at the next data pass).
Dictionary (variable properties)
Section titled “Dictionary (variable properties)”- ADD DOCUMENT: Adds quoted lines as a dataset document, stamped with today’s date.
- ADD VALUE LABELS: Adds or changes individual value labels while keeping the others.
- APPLY DICTIONARY: Copies dictionary information (labels, value labels, missing values, levels, formats, attributes) from another dataset or file to matching variables.
- DATAFILE ATTRIBUTE: Adds, changes or deletes custom attributes of the dataset itself.
- DOCUMENT: Adds a document (notes that travel with the data) to the active dataset, stamped with today’s date.
- DROP DOCUMENTS: Removes every document from the active dataset.
- FILE LABEL: Sets the active dataset’s descriptive label (saved in .sav files).
- FORMATS: Changes the print format (width and decimals, or a date/currency format) without changing the stored values.
- MISSING VALUES: Declares user-missing codes (for example 98 = Don’t know) that analyses exclude like system-missing values.
- MOVE VARIABLES: Changes the order of variables in the dataset (and therefore in TO lists).
- MRSETS: Defines, deletes or lists multiple response sets: named groups ($name) of variables that record one ‘select all that apply’ question.
- PRINT FORMATS: Sets print (display) formats without changing write formats.
- RENAME VARIABLES: Renames variables; weight, filter and split references follow the new names.
- VALUE LABELS: Replaces the value labels of one or more variables (codes shown as words, e.g. 1 = Male).
- VARIABLE ALIGNMENT: Sets how values are aligned in the data grid.
- VARIABLE ATTRIBUTE: Adds, changes or deletes custom attributes (name and text) on variables.
- VARIABLE LABELS: Gives variables descriptive labels that appear in dialogs, grids and output instead of the short name.
- VARIABLE LEVEL: Sets the measurement level (nominal, ordinal or scale) that dialogs use to offer suitable variables.
- VARIABLE ROLE: Assigns analysis roles used by automatic procedures and the AI planner.
- VARIABLE SETS: Defines named sets of variables and chooses which sets are in use (dialogs and views show only their variables).
- VARIABLE WIDTH: Sets the display width (in characters) of grid columns.
- WRITE FORMATS: Sets write formats, used by WRITE and portable files, without changing how values display.
Preprocessor directive (expanded before parsing)
Section titled “Preprocessor directive (expanded before parsing)”- DEFINE: Defines a macro: named text with optional arguments, expanded before the syntax runs.
- DO REPEAT: Repeats a block of commands with stand-in names replaced by lists of variables or values.
- INSERT: Runs another syntax file in place (INCLUDE is a synonym).
Procedure (reads data, produces output)
Section titled “Procedure (reads data, produces output)”- ACF: Autocorrelation function with standard errors, Box-Ljung statistics and a correlogram.
- ADJUST PVALUES: Adjusts a column of p-values for multiple testing and optionally saves the adjusted values.
- ADP: Automated data preparation: screens fields and writes cleaned copies (levels, outliers, missing values, reordering, rescaling and supervised category merging).
- AGREEMENT: Krippendorff’s alpha and Gwet’s AC1/AC2 for two or more raters with missing ratings allowed.
- ASSUMPTIONS: Checks the assumptions of a planned analysis — normality, equal variances, homoscedasticity, linearity, multicollinearity, independence, outliers, expected counts — with a Met / Questionable / Violated verdict per check and advice for every check that is not met.
- BAYES ANOVA: Bayesian one-way ANOVA: Bayes factor for group differences and posterior group means.
- BAYES CORRELATION: Bayes factors and posterior distributions for pairwise Pearson correlations.
- BAYES INDEPENDENT: Bayesian independent-samples t test (JZS Bayes factor, posterior of the mean difference).
- BAYES LOGLINEAR: Bayesian test of independence for a two-way contingency table (Gunel-Dickey Bayes factor).
- BAYES ONESAMPLE: Bayesian inference for one normal mean (JZS t test), binomial proportion or Poisson rate: Bayes factors and posterior distributions.
- BAYES REGRESSION: Bayesian linear regression: Bayes factor of the model, per-predictor inclusion Bayes factors and coefficient posteriors.
- BAYES RELATED: Bayesian paired-samples t test (JZS Bayes factor, posterior of the mean difference).
- BLANDALTMAN: Bland-Altman agreement analysis of two measurement methods: bias, limits of agreement with confidence intervals and plot.
- BORUTA: All-relevant feature selection with a random forest and permuted shadow features.
- CANCORR: Canonical correlation between two sets of variables, with Wilks’ lambda tests, coefficients, loadings and redundancy.
- CASECOUNT: Counts valid, missing and total (weighted) cases per variable; the reference procedure for developers.
- CATPCA: Categorical principal components: principal components analysis with optimal scaling of nominal, ordinal, spline and numeric variables.
- CATREG: Categorical regression: linear regression with optimal scaling of the dependent and independent variables, optionally regularized.
- CFA: Confirmatory factor analysis: each factor is named with its indicators; fit indices, standardized loadings, modification indices and measurement invariance across groups.
- CHART: Charts computed by the engine and drawn with Vega-Lite: bar, line, area, pie, scatter, histogram, boxplot, error bar, pyramid, high-low, dual-axis, violin, heat map, Q-Q, P-P, and rotatable 3-D scatter and bar charts.
- CLUSTER: Hierarchical agglomerative clustering of cases, with agglomeration schedule, dendrogram, icicle plot and saved memberships.
- CNLR: Constrained nonlinear regression: NLR with parameter bounds and linear or nonlinear constraints.
- COEFVAR: Coefficient of variation with Vangel, McKay or Miller confidence intervals and a test of equal CVs.
- COMPETING RISKS: Cumulative incidence when competing events occur, and Fine-Gray regression.
- CONJOINT: Conjoint analysis: part-worth utilities, attribute importance, holdout validation and preference simulations from rankings or scores of plan cards.
- CONTROL TEST: Control package test: compares the response of test packages with a control package.
- CORRELATIONS: Pearson correlation coefficients with significance tests.
- CORRESPONDENCE: Simple correspondence analysis of a two-way table: inertia, row and column points and biplot.
- COUNT REGRESSION: Poisson, negative binomial, zero-inflated and hurdle regression for count outcomes.
- COXREG: Cox proportional hazards regression with categorical, stratified and time-dependent covariates.
- CROSSTABS: Contingency tables with counts, percentages and residuals, plus chi-square tests and measures of association.
- CSCOXREG: Cox proportional hazards regression for a complex sample.
- CSDESCRIPTIVES: Design-based means, totals and ratios with standard errors, confidence intervals and design effects.
- CSGLM: Linear regression and ANOVA for a complex sample with design-based standard errors.
- CSLOGISTIC: Binary or multinomial logistic regression for a complex sample.
- CSORDINAL: Cumulative-link regression of an ordinal outcome for a complex sample.
- CSPLAN: Writes a complex samples plan: a sampling plan for CSSELECT or an analysis plan for the CS procedures.
- CSSELECT: Draws a probability sample from the active dataset according to a CSPLAN sampling plan.
- CSTABULATE: Design-based frequency tables and crosstabulations with Rao-Scott adjusted tests of independence.
- CTABLES: Custom tables: nested, stacked and layered variables with totals, subtotals, computed categories, many summary statistics per cell, multiple response sets and column comparison tests.
- CURVEFIT: Curve estimation: eleven two-variable regression models with fitted-curve plots.
- DBSCAN: Density-based clustering that finds clusters of any shape and marks outliers as noise.
- DCOR: Distance correlation, which detects linear and non-linear dependence, with a permutation test of independence.
- DESCRIPTIVES: Summary statistics (N, minimum, maximum, mean, standard deviation and more) for scale variables, optionally saving z-scores.
- DETECTANOMALY: Identifies unusual cases: cases far from their peer group (cluster) and the variables responsible.
- DID: Difference-in-differences estimate of a treatment effect with robust or clustered standard errors.
- DISCONTINUITY: Sharp regression discontinuity: the jump in an outcome at a cutoff of a running variable.
- DISCRIMINANT: Linear discriminant analysis: functions that separate known groups, classification of cases and stepwise selection.
- EFA: Exploratory factor analysis with polychoric input, parallel analysis, MAP and geomin/bifactor rotations.
- EFFECT SIZES: Standardized effect sizes with confidence intervals for group differences and associations.
- EQUIVALENCE TEST: Two one-sided tests (TOST) that a mean difference or correlation lies inside equivalence bounds.
- EXAMINE: Explore: descriptives, robust M-estimators, percentiles, extreme values, normality tests and plots, overall or by groups.
- FACTOR: Exploratory factor analysis and principal components with rotation and factor scores.
- FRACTIONAL REGRESSION: Regression for proportions on [0, 1] by Bernoulli quasi-likelihood with robust SEs.
- FREQUENCIES: Frequency tables (counts and percentages) with optional summary statistics and percentiles.
- GAM: Generalized additive model: smooth nonlinear effects by penalized splines, plus regression spline terms.
- GENEDIFF: Differential expression between two groups of samples, gene by gene: limma moderated t (empirical Bayes), voom for RNA-seq counts, ordinary t, Welch t or Wilcoxon, with fold changes, FDR, volcano and MA plots and a top-gene heatmap.
- GENENORM: Normalizes an expression matrix with genes as cases and samples as variables, writing one new variable per sample.
- GENEXPLORE: Sample-level quality control of an expression matrix: sample distributions, PCA of the most variable genes, a clustered sample-correlation heatmap and a heatmap of the top genes.
- GENLIN: Generalized linear models (normal, binomial, Poisson, negative binomial, gamma, inverse Gaussian, Tweedie, ordinal multinomial) and generalized estimating equations.
- GENLINMIXED: Generalized linear mixed models: binary, count or skewed outcomes with random intercepts and slopes per subject.
- GENLOG: General loglinear (Poisson or multinomial) and logit loglinear models with cell structures and cell covariates.
- GLM: General linear model: univariate for one dependent variable (as UNIANOVA), multivariate (MANOVA/MANCOVA) for several, and repeated measures with within-subjects factors.
- HECKMAN: Sample-selection model: probit selection equation and outcome equation by maximum likelihood.
- HILOGLINEAR: Hierarchical loglinear models for multiway frequency tables, with K-way tests, partial associations and backward elimination.
- IRT: Rasch, 2PL, 3PL, graded response and partial credit models by marginal maximum likelihood.
- KAPPA: Inter-rater agreement: Cohen’s kappa (optionally linear or quadratic weighted) for two raters, Fleiss’ kappa for three or more.
- KM: Kaplan-Meier survival analysis: survival curves, mean and median survival, and log-rank, Breslow and Tarone-Ware comparisons.
- KNN: Nearest-neighbour classification or prediction with a holdout sample, automatic choice of k and feature selection.
- KRR: Kernel ridge regression with RBF, polynomial, linear, sigmoid, Laplacian or cosine kernels.
- LATENT CLASS: Latent class analysis for categorical indicators across a range of class counts.
- LATENT PROFILE: Latent profile analysis: Gaussian mixtures of continuous indicators with diagonal covariance.
- LINEAR: Automatic linear modeling: linear regression with forward stepwise or best-subsets effect selection and predictor importance.
- LIST: Shows the values of variables case by case in an output table.
- LOGISTIC REGRESSION: Binary logistic regression: odds ratios, Wald tests, model fit, Hosmer-Lemeshow and classification.
- MAP: Choropleth, point and heat maps. The engine aggregates and joins the data to boundaries: the bundled Natural Earth world countries or first-level divisions, or your own GeoJSON or shapefile.
- MDS: Multidimensional scaling of dissimilarities: classical (Torgerson) and metric or nonmetric SMACOF, with stress and a common-space plot.
- MEANS: Means and other statistics of dependent variables within categories of one or more grouping variables.
- MEDIATION: Simple, parallel and serial mediation (PROCESS models 4 and 6) with bootstrapped indirect effects and a path diagram.
- META BINARY: Meta-analysis of binary outcomes from per-arm events and totals (log odds ratio, log risk ratio or risk difference).
- META CONTINUOUS: Meta-analysis of continuous outcomes from per-arm sample sizes, means and SDs (Hedges’ g, Cohen’s d or raw mean difference).
- META ES: Meta-analysis of precomputed effect sizes (one case per study) with fixed- or random-effects pooling.
- MIXED: Linear mixed models: random effects per subject or cluster and structured covariance for repeated measures, estimated by REML or ML.
- MIXTURE CLUSTER: Model-based clustering with Gaussian mixtures, choosing clusters and covariance by BIC.
- MLP: Multilayer perceptron: a feed-forward neural network with one or two hidden layers for a categorical (classification) or scale (prediction) dependent.
- MODERATION: Moderated regression (PROCESS model 1): interaction test, conditional effects, Johnson-Neyman region and simple-slopes plot.
- MULT RESPONSE: Frequencies and crosstabulations of multiple response sets, with counts and percentages based on respondents or responses.
- MULTIPLE CORRESPONDENCE: Multiple correspondence (homogeneity) analysis of several nominal variables: category points, object scores and discrimination measures.
- MULTIPLE IMPUTATION: Creates m completed copies of the data (fully conditional specification or monotone), analysed with Rubin’s-rules pooling.
- MVA: Missing value analysis: patterns, separate-variance t tests, Little’s MCAR test and listwise, pairwise, EM and regression estimates.
- NETWORK: Psychometric network of regularized partial correlations with centrality indices.
- NLR: Nonlinear least-squares regression for a model written as an expression in variables and named parameters.
- NOMREG: Multinomial logistic regression for an outcome with more than two unordered categories.
- NONPAR CORR: Spearman’s rho and Kendall’s tau-b rank correlations.
- NORMALITY: Normality tests (Shapiro–Wilk, Lilliefors, Anderson–Darling, Jarque–Bera, D’Agostino K²) with skewness, kurtosis and plots.
- NPAR TESTS: Classic nonparametric tests for one sample, independent groups and related samples.
- NPTESTS: Nonparametric tests with automatic test choice by measurement level, summarised in a Hypothesis Test Summary.
- ONEWAY: One-way analysis of variance with robust tests, contrasts and post hoc comparisons.
- OPTIMAL BINNING: Discretises scale variables into bins that best separate the categories of a guide variable (minimum description length principle).
- OVERALS: Nonlinear canonical correlation among two or more sets of variables with optimal scaling.
- PACF: Partial autocorrelation function (Durbin-Levinson) with a correlogram.
- PANEL REGRESSION: Pooled, fixed-effects and random-effects models for panel data with the Hausman test.
- PARTIAL CORR: Correlations controlling for the linear effect of other variables.
- PERMUTATION TEST: Re-randomization tests for groups, paired differences and correlations.
- PLANCARDS: Lists the profile cards of a conjoint plan as a table and/or one card per profile.
- PLS: Partial least squares regression for many or collinear predictors and one or more dependents.
- PLUM: Ordinal regression (cumulative link / proportional odds model) for an ordered outcome.
- POLYCHORIC: Polychoric (ordinal) and tetrachoric (binary) correlation matrix by two-step maximum likelihood.
- POSTAL RESPONSE: Response rates by postal code, or by its first characters, from an earlier campaign.
- POWER: Power and sample-size analysis for t tests, one-way ANOVA, correlation, proportions and multiple regression. Needs no data.
- PPLOT: Probability plots (P-P or Q-Q) comparing a variable with a normal, lognormal, exponential or uniform distribution.
- PREFSCAL: Multidimensional unfolding of preference data with the penalty that prevents degenerate solutions.
- PROBIT: Dose-response analysis of the proportion responding: probit or logit model, natural response rate and effective doses.
- PROPENSITY: Propensity to purchase: a logistic model of response with a validation sample, saving scores.
- PROPORTIONS: Tests and confidence intervals for one proportion, two independent proportions, or paired proportions.
- PROSPECT PROFILES: Profiles of earlier responders (CHAID segments), ranked by response rate.
- PROXIMITIES: Distance or similarity matrices between cases or between variables.
- PROXSCAL: Multidimensional scaling of one or more proximity matrices with ratio, interval, ordinal or spline transformations and identity, weighted or generalized Euclidean models.
- PSM: Propensity score matching: logistic propensity score, nearest-neighbour matching with a caliper and covariate balance.
- QUANTREG: Quantile regression: models the median or any other quantile of a scale outcome.
- QUICK CLUSTER: K-means clustering: assigns each case to the nearest of k cluster centres, updating the centres until they stop moving.
- RATIO STATISTICS: Summaries of the ratio of two variables (e.g. assessed value / sale price): median, mean, weighted mean, COD, PRD and COV.
- RBF: Radial basis function network: Gaussian hidden units centred by k-means, output weights by least squares.
- REGRESSION: Linear regression by least squares with variable selection, diagnostics and saved predictions.
- REGULARIZED: Lasso, ridge and elastic-net linear regression with cross-validated penalty.
- RELATIVE IMPORTANCE: Dominance analysis: splits R² among correlated predictors (LMG/Shapley weights).
- RELIABILITY: Scale reliability: Cronbach’s alpha, split-half, Guttman, parallel models, intraclass correlations and McDonald’s omega.
- RFMANALYSIS: Recency, frequency and monetary (RFM) scores from customer data or from transactions.
- RMST: Restricted mean survival time up to a horizon, with group differences and ratios.
- ROBUST MEANS: Trimmed means, Yuen’s test and the heteroskedastic one-way test on trimmed means.
- ROBUST REGRESSION: Linear regression that resists outliers: Huber or bisquare M, MM and least trimmed squares.
- ROC: ROC curves: area under the curve with standard error and confidence interval, curve coordinates and DeLong comparison of correlated curves.
- SEASON: Classical seasonal decomposition (ratio or difference to a centred moving average): seasonal factors, seasonally adjusted series, trend-cycle and irregular component.
- SEGMENT: Segments contacts by k-means clustering of scale and categorical fields and profiles the segments.
- SEM: Structural equation model written in lavaan-style model syntax: latent variables, regressions, (residual) covariances, labels, equality constraints and defined parameters such as indirect effects.
- SNPASSOC: Single-SNP genetic association: allelic, genotypic and Cochran-Armitage trend tests and logistic regression for case-control traits, linear regression for quantitative traits, with covariates, genomic inflation λ, FDR, Manhattan and QQ plots.
- SNPQC: Genotype quality control: per-SNP call rate, minor allele frequency, genotype counts, heterozygosity and Hardy-Weinberg exact test; per-sample call rate, heterozygosity and inbreeding F.
- SPECTRA: Spectral analysis: periodogram, smoothed spectral density and cross-spectral statistics.
- SURVIVAL: Actuarial life tables: survival, density and hazard by time interval, with the Wilcoxon (Gehan) comparison of groups.
- SURVREG: Parametric accelerated failure time survival models (Weibull, exponential, log-normal, log-logistic).
- T-TEST: One-sample, independent-samples and paired-samples t tests with effect sizes.
- TCM: Temporal causal modeling: selects lagged input series for each target by group lasso and tests them with Granger F tests.
- TOBIT: Censored normal regression for outcomes piled up at a limit (for example spending of zero).
- TREE: Decision trees: CHAID, Exhaustive CHAID, CRT and QUEST classification and regression trees.
- TSAPPLY: Applies models saved by TSMODEL to current data: forecasts with the stored parameters, or re-estimates the same structure.
- TSFILTER: Trend-cycle decomposition with the Hodrick-Prescott, Baxter-King or Christiano-Fitzgerald filter.
- TSLS: Two-stage least-squares (instrumental variables) regression; SPSS’s 2SLS.
- TSMODEL: Builds time series models: exponential smoothing, ARIMA and transfer functions, chosen automatically by the Expert Modeler or specified, with outlier detection and forecasts.
- TURF: Total unduplicated reach and frequency: the combinations of items that reach the most cases.
- TWOSTEP CLUSTER: Two-step clustering of categorical and continuous variables that picks the number of clusters by BIC or AIC.
- UNIANOVA: Univariate general linear model: factorial ANOVA and ANCOVA with fixed and random factors and covariates.
- VALIDATEDATA: Screens variables, checks case identifiers and applies single- and cross-variable validation rules, optionally saving violation indicators.
- VAR: Vector autoregression: lag-order selection, coefficients, Granger causality, impulse responses, variance decomposition and forecasts.
- VARCOMP: Variance components: how much of the outcome’s variance each random effect contributes.
- WLS: Weight estimation: weighted least squares with weights 1/source^power, choosing the power by maximum likelihood.
Session
Section titled “Session”- BEGIN PROGRAM: Runs an embedded Python program with the orcstat API: read and write the data, run syntax, add tables and charts to the output, and define new procedures.
- BOOTSTRAP: Bootstrap bias, standard errors and confidence intervals for the statistics of the next procedure.
- CONVERT SYNTAX: Converts a syntax file written for SPSS into OrcStat syntax, with a report of anything it could not map.
- DATASET ACTIVATE: Makes another open dataset the active one (the target of commands).
- DATASET CLOSE: Closes an open dataset (or ALL except the active one).
- DATASET COPY: Copies the active dataset into a new dataset with the given name.
- DATASET DECLARE: Reserves a dataset name for use as a command’s output (e.g. AGGREGATE /OUTFILE=name).
- DATASET DISPLAY: Lists the open datasets with their size and which one is active.
- DATASET NAME: Renames the active dataset.
- DISPLAY DOCUMENTS: Shows the active dataset’s documents in the output.
- ECHO: Shows a line of text in the output (useful in long jobs).
- EXPORT: Writes the active dataset as an SPSS portable (.por) file.
- MACRO ERROR: Internal: reports a problem found while expanding macros, INSERT or DO REPEAT (shown with the original line).
- MODEL CLOSE: Discards a model handle.
- MODEL HANDLE: Loads a saved model (PMML or OrcStat JSON) under a handle, for scoring with SCORE.
- MODEL LIST: Lists the loaded model handles and the most recently fitted model.
- OMS: Routes selected output (tables, texts, warnings, logs, charts) of the commands that follow to a dataset or a file, optionally hiding it from the viewer.
- OMSEND: Ends OMS requests (all, or the tagged ones) and writes what they captured.
- OMSINFO: Lists the active OMS requests and how many items each has captured.
- OUTPUT EXPORT: Exports output produced earlier in the session to a document.
- OUTPUT MODIFY: Sets the number format of significance values or counts in every later output table.
- OUTPUT OPEN: Adds the items of an OrcStat output document (.oso) to the output.
- OUTPUT SAVE: Saves the output produced so far as an OrcStat output document (.oso), optionally password-protected, that reopens as live output.
- PRINT: Shows case values as formatted text, one line per case, in the output or in a text file.
- SET: Changes session settings.
- SYSFILE INFO: Describes a data file (label, cases, variables, formats, documents) without opening it.
- TEMPORARY: Makes the following transformations (including SELECT IF) apply only to the next procedure.
- TIME PROGRAM: Defines a time-dependent covariate for COXREG as an expression in T_ (the survival time) and other variables.
- WRITE: Writes case values to a text file, one line per case, using write formats and no separators.
- XEXPORT: Writes an SPSS portable (.por) file; the same as EXPORT (OrcStat writes at once).
Transformation (pending until data is needed)
Section titled “Transformation (pending until data is needed)”- BREAK: Leaves the innermost LOOP (usually inside DO IF).
- COMPUTE: Creates or overwrites a variable from an expression.
- COUNT: Counts, for each case, how many of the listed variables hold the given values.
- DO IF: Starts a block of transformations executed for cases meeting a condition, with optional ELSE IF / ELSE branches.
- ELSE: Adds the branch taken by remaining cases inside a DO IF block.
- ELSE IF: Adds an alternative condition inside a DO IF block.
- END IF: Closes a DO IF block.
- END LOOP: Closes a LOOP block, optionally ending the loop when a condition becomes true.
- EXECUTE: Runs any pending transformations now.
- IF: Assigns a value only to cases that meet a condition.
- LEAVE: Keeps a variable’s value from one case to the next instead of resetting it, for running totals.
- LOOP: Repeats transformations, either over an index range or until a condition is met.
- NUMERIC: Declares new numeric variables with a print format.
- RECODE: Maps old values to new values, in place or into new variables.
- SAMPLE: Keeps a random sample of cases, using the session’s seeded random number generator.
- SELECT IF: Permanently deletes cases that do not meet a condition (or only for the next procedure after TEMPORARY).
- STRING: Declares new string variables with a width so they can be computed.
- VECTOR: Groups variables under one name so they can be indexed, e.g. inside loops.
Generated from OrcStat’s command registry.