Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Statscraft 0.61.0, release v0.61.0

Commands

One page per supported command, generated from the same table that the parser and statscraft help use, so the pages always match the program.

Data files and dictionary

命令功能 {#what-it-does}
GETRead a data file and make it the active dataset.
GET DATARead a text data file, a sheet of a workbook or a dataset of an OpenStatSpec database as the active dataset.
GET TRANSLATERead a tab-delimited text file, a dBASE file or an old Excel workbook.
GET STATARead a Stata data file (.dta) and make it the active dataset.
IMPORTRead a portable (.por) file and make it the active dataset.
SYSFILE INFOShow the dictionary of a data file without opening it as the active dataset.
SAVEWrite the active dataset to a data file.
SAVE TRANSLATEWrite the active dataset to a CSV or tab-delimited text file, an Excel workbook, a Stata file, a SAS transport file or a dBASE file.
SAVE CODEPAGEWrite the active dataset to a data file whose text is in a code page.
EXPORTWrite the active dataset to a portable (.por) file.
XSAVEWrite the cases to a data file as the next data pass reads them.
NEW FILEStart a new, empty active dataset.
ADD CASEA Statscraft extension: one blank case after the last case of the active dataset.
ADD FILESAppend the cases of several data files, matching variables by name.
MATCH FILESCombine the variables of several data files case by case or by key.
STAR JOINAdd the fields of lookup files to every case of a data file, by keys, as an SQL left join.
UPDATEReplace values of a primary file with the values of transaction files, by key.
COMPARE DATASETSCompare the values and dictionary of the active dataset with another dataset or .sav file.
VARIABLE LABELSSet the labels of variables.
VALUE LABELSReplace the value labels of variables.
MISSING VALUESDeclare user-missing values.
VARIABLE LEVELSet the measurement level of variables.
VARIABLE WIDTHSet how many characters wide variables show in the data grid.
FORMATSSet the display format of variables.
PRINT FORMATSSet the print format of variables: how procedures and PRINT show them.
WRITE FORMATSSet the write format of variables: how WRITE writes them.
RENAME VARIABLESChange the names of variables.
DELETE VARIABLESRemove variables from the dataset.
SORT CASESSort the cases by the values of variables.
SORT VARIABLESPut the variables in order by a property of their dictionary entries.
SHIFT VALUESNew variables that hold the value of the same variable in an earlier or later case.
WEIGHTWeight the cases by a variable, or turn weighting off.
AGGREGATEAggregate groups of cases into new variables or a new dataset.
VARSTOCASESTurn groups of variables into cases: one new case per variable of the group.
CASESTOVARSTurn groups of cases into one case each, with a variable per value of an index.
FLIPTranspose the data: variables become cases and cases become variables.
ADD VALUE LABELSAdd or change value labels, keeping the other labels of the variables.
FILE LABELSet the label of the data file.
DOCUMENTAdd free text to the documents of the data file.
ADD DOCUMENTAdd quoted lines to the documents of the data file.
DROP DOCUMENTSRemove the documents of the data file.
VARIABLE ROLESet the role of variables for dialogs.
VARIABLE ALIGNMENTSet the alignment of variables in the data grid.
VARIABLE ATTRIBUTESet or delete custom attributes of variables.
DATAFILE ATTRIBUTESet or delete custom attributes of the data file.
ALTER TYPEChange the type, string width or format of variables.
APPLY DICTIONARYCopy dictionary information from a data file or dataset to the active dataset.
DATA LISTDefine text data, inline or in a file, and read it as the new active dataset.
KEYED DATA LISTRead variables from the record of a text file that a key variable picks, for each case.
BEGIN DATAInline data for the DATA LIST before it, up to a line that holds END DATA.
MATRIX DATARead matrix materials (correlations, means, counts) as a matrix data file.
MCONVERTMatrix data between covariances and correlations with standard deviations.
INPUT PROGRAMStart an input program: commands that build the cases of a new active dataset.
END INPUT PROGRAMEnd an input program and run it.
END CASEIn an input program: add the case built so far to the dataset and go on.
END FILEIn an input program or FILE TYPE: stop reading; the case being built is dropped.
REREADIn an input program: let the next DATA LIST read the last record again.
REPEATING DATAIn an input program or FILE TYPE: one case per repeating group of a record.
FILE TYPEStart the definition of a file with several kinds of records.
RECORD TYPEInside FILE TYPE: the record types the following DATA LIST reads.
END FILE TYPEEnd a FILE TYPE definition and read the file.
SPLIT FILERun each procedure once per run of consecutive cases that share the split values.
FILTERLeave out of procedures the cases whose filter value is 0 or missing.
TEMPORARYMake the changes that follow last only until the next procedure.
N OF CASESKeep only the first n cases from the next data pass on.
NShort for N OF CASES.
SAMPLEKeep a random sample of the cases.
BOOTSTRAPGive the next procedure bootstrap bias, standard errors and confidence intervals.

Transformations

命令功能 {#what-it-does}
COMPUTEAssign the value of an expression to a variable.
IFAssign a value only for the cases where a condition holds.
DO IFStart a block of transformations that run only where a condition holds.
ELSE IFStart the next conditional branch of a DO IF block.
ELSEStart the branch of a DO IF block for the cases no condition matched.
END IFEnd a DO IF block.
RECODEMap values of variables to new values.
COUNTCount, per case, how many variables hold one of the listed values.
SELECT IFKeep only the cases where a condition holds.
STRINGDeclare new string variables, filled with empty strings.
NUMERICDeclare new numeric variables, filled with system-missing.
LEAVEKeep the values of new variables from case to case instead of resetting them.
EXECUTERun the pending transformations.
DO REPEATRepeat transformations with stand-in names replaced by variables or values.
LOOPRepeat transformations for each case, with an index, a condition or both.
END LOOPEnd a LOOP, optionally when a condition holds.
BREAKLeave the innermost LOOP, usually inside DO IF.
VECTORName a range of variables, or new variables, as a vector for indexed use.
AUTORECODERecode values into consecutive integers in new variables, labeled with the old values.
RANKRanks, percentile groups, proportion estimates, normal and Savage scores as new variables.
DATEAdd date variables that count the cases of a time series.
PRINTShow the values of variables for every case, as lines of text.
PRINT EJECTLike PRINT, starting a new page each time it runs.
PRINT SPACEAdd blank lines to the PRINT output, for every case it runs on.
WRITEWrite the values of variables for every case to a text file.
CLEAR TRANSFORMATIONSUndo the transformations and dictionary changes since the last data pass.

Procedures

命令功能 {#what-it-does}
FREQUENCIESFrequency tables, summary statistics and percentiles.
DESCRIPTIVESSummary statistics of numeric variables, optionally saved as z-scores.
CROSSTABSContingency tables with percentages, residuals and chi-square tests.
MULT RESPONSEFrequency tables and crosstabulations of multiple response groups and variables.
MEANSStatistics of dependent variables within groups of control variables.
SUMMARIZEStatistics of dependents within groups of control variables, optionally listing the cases.
OLAP CUBESStatistics of scale variables in nested groups, with differences between groups or variables.
CODEBOOKDictionary entries and summary statistics of variables and multiple response sets.
VALIDATEDATAFind suspicious variables, incomplete or duplicate IDs, empty cases and rule violations.
T-TESTOne-sample, independent-samples and paired-samples t tests with effect sizes.
ONEWAYOne-way analysis of variance with contrasts and post hoc comparisons.
CORRELATIONSPearson correlations with significance and case counts.
NONPAR CORRSpearman’s rho and Kendall’s tau-b rank correlations with significance.
PARTIAL CORRPartial correlations of variables controlling for others, with significance.
NPAR TESTSNonparametric tests: one-sample, two and k related samples, two and k independent samples.
NPTESTSNonparametric tests picked by measurement level: one sample, independent samples, related samples.
PROPORTIONSTests and confidence intervals for a proportion or a difference of two proportions.
EXAMINEDescriptives, percentiles, M-estimators, extreme values and normality tests, by factor cells.
REGRESSIONLinear regression with forced entry or removal and stepwise selection, residuals and diagnostics.
RELIABILITYReliability of a scale: Cronbach’s alpha, split-half and other models, item statistics and ICC.
WEIGHTED KAPPACohen’s weighted kappa: how well two raters agree on an ordered scale.
FLEISS MULTIRATER KAPPAFleiss’ kappa: how well several raters agree when they sort subjects into categories.
RATIO STATISTICSStatistics of the ratio of two positive variables, overall and within groups.
BAYES ONESAMPLEBayesian inference on one mean, proportion or Poisson rate: Bayes factors and posteriors.
BAYES RELATEDBayesian inference on the mean difference of paired measurements.
BAYES INDEPENDENTBayesian comparison of the means of two independent groups.
BAYES CORRELATIONBayesian inference on the Pearson correlation of every pair of variables.
BAYES ANOVABayesian one-way analysis of variance: a Bayes factor for the groups and posteriors of their means.
BAYES REGRESSIONBayesian linear regression: a Bayes factor for the model, posteriors, predictions and F tests.
BAYES REPEATEDBayesian one-way repeated measures analysis: a Bayes factor and posteriors of the condition means.
BAYES LOGLINEARBayesian test of independence in a two-way table, with simulated interaction terms.
POWER MEANS ONESAMPLEPower or sample size of a one-sample t-test of a mean.
POWER MEANS INDEPENDENTPower or group sizes of a t-test comparing the means of two independent groups.
POWER MEANS RELATEDPower or number of pairs of a paired t-test.
POWER PROPORTIONS ONESAMPLEPower or sample size of a test of one proportion against a hypothesized value.
POWER PROPORTIONS INDEPENDENTPower or group sizes of a test comparing two independent proportions.
POWER PROPORTIONS RELATEDPower or number of pairs of McNemar’s test of two paired proportions.
POWER ONEWAY ANOVAPower or group sizes of a one-way analysis of variance, its contrasts and pairwise comparisons.
POWER PEARSON ONESAMPLEPower or sample size of a test of one Pearson correlation against a hypothesized value.
POWER SPEARMAN ONESAMPLEPower or sample size of a test of one Spearman rank correlation against a hypothesized value.
POWER PARTIALCORRPower or sample size of a test of one partial correlation against a hypothesized value.
POWER UNIVARIATE LINEARPower or sample size of the F test of a set of predictors in a linear regression.
SIMPLANA simulation plan: distributions of the inputs, fitted to the data or given, their correlations and the targets of a model.
SIMRUNRuns a simulation plan: draws the inputs, computes the targets and describes their distributions.
BEGIN EXPRStarts a block of expressions that END EXPR saves as a model for SIMPLAN.
END EXPREnds the BEGIN EXPR block and writes its model file.
FACTORFactor analysis: principal components and six factoring methods, rotations, factor scores.
QUICK CLUSTERK-means clustering of cases into a given number of clusters.
CLUSTERHierarchical clustering of cases by one of 37 proximity measures and seven methods.
TWOSTEP CLUSTERClusters of cases from continuous and categorical variables, the number of clusters chosen by BIC or AIC.
DMCLUSTERAnother name for TWOSTEP CLUSTER.
DETECTANOMALYUnusual cases: peer groups by two-step clustering, an anomaly index and the variables behind it.
OPTIMAL BINNINGBins of scale variables: cuts chosen by MDLP against a guide variable, or by equal frequency.
KNNNearest neighbor analysis: classify or predict a target from the k most similar training cases.
NAIVEBAYESNaive Bayes classification of a categorical target, with forward selection of the predictors.
AIMAttribute importance: how much each variable sets every group (cluster) apart from all cases.
SELECTPREDScreens a long list of predictors and ranks them one by one by how well each relates to a target.
RESPONSE RATEResponse rates of a numerator over a denominator in each group, with cumulative rates and limits.
ADPPrepares a target and its inputs for modelling and writes the preparation as syntax.
PROXIMITIESSimilarities, dissimilarities or distances between cases or variables by one of 37 measures.
PROXSCALMultidimensional scaling of one or more proximity matrices by majorization, with optimal transformations.
PREFSCALMultidimensional unfolding of preferences or proximities between row and column objects, with penalized stress.
ALSCALMultidimensional scaling of proximity matrices, symmetric, asymmetric or rectangular, by alternating least squares on squared distances.
ORTHOPLANGenerates an orthogonal main-effects plan of profiles for a conjoint study.
PLANCARDSShows the profiles of a conjoint plan as a list or as one card per profile.
CONJOINTPart-worth utilities and importances from rankings or scores of the profiles of a plan.
DISCRIMINANTLinear discriminant analysis with direct or stepwise entry and classification of cases.
CORRESPONDENCECorrespondence analysis: rows and columns of a two-way table as points in a few dimensions.
MULTIPLE CORRESPONDENCEMultiple correspondence (homogeneity) analysis: cases and categories of several nominal variables as points in a few dimensions.
CATPCACategorical principal components: quantify each variable by optimal scaling (spline, ordinal, nominal, multiple nominal or numeric) and reduce them to a few components.
CATREGCategorical regression: quantify a response and its predictors by optimal scaling (spline, ordinal, nominal or numeric) so that a linear model fits best, with ridge, lasso and elastic net penalties.
HOMALSHomogeneity analysis in the older syntax: MULTIPLE CORRESPONDENCE with variables read as categories 1 to a stated largest value.
PRINCALSNonlinear principal components in the older syntax: CATPCA with variables read as categories 1 to a stated largest value.
OVERALSNonlinear canonical correlation analysis: what two or more sets of variables, each quantified at its own level, have in common.
ANACORCorrespondence analysis in the older syntax: CORRESPONDENCE with its own normalization names and defaults.
LOGISTIC REGRESSIONBinary logistic regression with categorical covariates, stepwise selection and case diagnostics.
DMLOGISTICAnother name for LOGISTIC REGRESSION.
NOMREGMultinomial logistic regression: a nominal dependent variable on factors and covariates.
MVAMissing value analysis: where values are missing, how that relates to the other variables, and estimates that allow for it.
HILOGLINEARHierarchical loglinear models of a multiway table of counts, with backward elimination.
LOGLINEARGeneral loglinear and logit models of a table of counts, with contrasts, cell weights and generalized residuals.
GENLOGGeneral loglinear and logit models of a table of counts, with cell weights, covariates and contrasts.
PROBITProbit and logit models of response counts out of subject counts, with effective levels.
CURVEFITFit up to eleven curves of one independent variable, or of time, by least squares.
WLSWeighted least squares: weights from a power of a source variable, or a given weight.
MODEL PROGRAMName the parameters of a nonlinear model and give their starting values; the transformations after it define the model.
DERIVATIVESStart the derivatives program of the model program.
CLEAR MODEL PROGRAMSDrop the model program and the derivatives program of the last MODEL PROGRAM.
NLRNonlinear regression by least squares (Levenberg-Marquardt) for the model of the last MODEL PROGRAM.
CONSTRAINED FUNCTIONSStart the program that computes the constrained functions of the next CNLR.
CNLRConstrained nonlinear regression: least squares or a loss function of your own, under bounds, linear constraints and constrained functions.
MULTIPLE IMPUTATIONMultiple imputation: several completed copies of the data with plausible values in place of the missing ones.
PLUMOrdinal regression: a cumulative link model of an ordered dependent variable.
QUANTILE REGRESSIONLinear regression of a chosen quantile of the dependent variable, fitted by linear programming.
PLSPartial least squares regression of one or more dependent variables on many, possibly collinear, predictors.
GENLINGeneralized linear models: normal, binomial, Poisson, gamma, inverse Gaussian, negative binomial and ordinal responses.
UNIANOVAGeneral linear model of one dependent variable: factorial ANOVA, ANCOVA and regression.
GLMGeneral linear model: one dependent variable as in UNIANOVA, several (multivariate analysis of variance and covariance), or repeated measures with WSFACTOR.
MANOVAAnalysis of variance and covariance for one or several dependents, with nested and pooled terms, partitions and chosen error terms.
MIXEDLinear mixed model: fixed effects with random effects of subjects and correlated repeated measures.
VARCOMPVariance components: how much each random effect of a linear model adds to the variance of the dependent variable.
GENLINMIXEDGeneralized linear mixed model: a target with a normal, binomial, multinomial, gamma, inverse Gaussian, Poisson or negative binomial distribution and a link, fixed effects, random effects of subjects and repeated measures.
COXREGCox proportional hazards regression of survival times, with strata, categorical covariates, stepwise selection and time-dependent covariates.
TIME PROGRAMStart the transformations that define time-dependent covariates for the next COXREG.
CLEAR TIME PROGRAMDrop the time-dependent covariates of the last TIME PROGRAM.
ANOVAAnalysis of variance for factorial designs with covariates, the older form with MCA tables.
TREEA decision tree grown by CHAID, exhaustive CHAID, CRT or QUEST, with gain tables, rules and saved predictions.
DMTREEAnother name for TREE.
MLPMultilayer perceptron: a neural network with one or two hidden layers that predicts scale dependents and classifies categorical ones.
RBFRadial basis function network: Gaussian hidden units at two-step clusters and least squares output weights.
GRAPHOne chart: summaries by category as bars, lines, areas, a pie, points with error bars, a Pareto chart or ranges, a histogram, a scatterplot or a scatterplot matrix.
GGRAPHA chart from a graph dataset and a chart program in BEGIN GPL: bars (clustered, stacked), lines, areas, points, a pie or a histogram.
BEGIN GPLThe chart program of the GGRAPH command right before it, up to END GPL.
IGRAPHThe older chart command: bars, lines, areas, pies, boxes, error bars, histograms and scatterplots built from variables placed on axes and legends.
XGRAPHCharts from one expression: summaries as bars or lines, clustered, stacked and paneled, population pyramids, binned histograms, dot plots and boxes.
PPLOTProbability plots: Q-Q or P-P plots of variables against a test distribution.
NPPLOTAnother name for PPLOT.
ROCROC curve of test variables against a state, with the area under the curve.
DMROCAnother name for ROC.
ROC ANALYSISROC curves with paired or two-group comparisons of their areas, precision-recall curves and classifier metrics.
SPCHARTControl charts (X-bar with R or s, individuals, p, np, c, u) and the process capability chart.
KMKaplan-Meier survival estimates by factor level and stratum, with tests that compare the levels.
K-MAnother name for KM.
SURVIVALActuarial life tables over fixed time intervals, with the Wilcoxon (Gehan) comparison of groups.
REPORTCase listings and summary statistics by break groups, laid out as a report.
MATRIXRun a program in the matrix language, up to END MATRIX.

Time series

命令功能 {#what-it-does}
TSETSettings shared by the time series procedures.
TSHOWList the time series settings.
VERIFYCheck the DATE variables and report the USE and PREDICT periods.
CREATENew series from functions of existing series: lags, differences, smoothers, FFT.
RMVCopies of series with the missing values filled in by interpolation, a mean, a median or a trend.
ACFAutocorrelations of time series, with standard errors, Box-Ljung tests and charts.
PACFPartial autocorrelations of time series, with standard errors and charts.
CCFCross-correlations of pairs of time series, with standard errors and charts.
SEASONSeasonal decomposition by ratios (or differences) to a moving average.
PREDICTSet the forecast period of EXSMOOTH and ARIMA.
EXSMOOTHExponential smoothing with or without trend and season, with fitted values and forecasts.
ARIMASeasonal ARIMA models with regressors by exact maximum likelihood, with forecasts.
AREGRegression whose errors follow a first-order autoregressive process.
SPECTRAPeriodogram, smoothed spectral density and cross-spectra of series.
2SLSTwo-stage least squares for equations with endogenous predictors.
TSMODELExponential smoothing and ARIMA models of series, picked by hand or by the expert modeler, with forecasts.
TSAPPLYForecasts from time series models that TSMODEL saved, as they are or estimated again.
TSPLOTChart of time series over the cases, as chart data.
CASEPLOTChart of time series with the cases down the vertical axis, as chart data.
FITGoodness-of-fit statistics of residual series from time series models.

自定义表格

命令功能 {#what-it-does}
CTABLESCustom tables: counts, percentages and statistics by categories.
DMTABLESAnother name for CTABLES.
MRSETSDefine, delete and list multiple response sets.

Complex samples

命令功能 {#what-it-does}
CSPLANWrite or show the plan of a complex sample: how to draw it, or how to analyze it.
CSSELECTDraw a complex sample from the active dataset by a plan written by CSPLAN SAMPLE.
CSDESCRIPTIVESMeans, sums and ratios of a complex sample with design-based standard errors and design effects.
CSTABULATEOne-way and two-way tables of a complex sample with design-based errors and adjusted tests.
CSGLMLinear regression, ANOVA and ANCOVA on a complex sample, with design-based standard errors and tests.
CSLOGISTICBinary and multinomial logistic regression on a complex sample, with design-based standard errors and tests.
CSORDINALOrdinal regression (cumulative link model) on a complex sample, with design-based standard errors and tests.
CSCOXREGCox proportional hazards regression on a complex sample, with design-based standard errors and tests.

Macros, files and session

命令功能 {#what-it-does}
DEFINEDefine a macro: a name that stands for syntax, with arguments.
INSERTRun the commands of another syntax file in place of this command.
INCLUDERun the commands of another syntax file, read by the batch rules.
BEGIN PROGRAMA block of code in another programming language; it is skipped with a warning.
SETChange settings of the session.
SHOWShow the current settings.
PRESERVEStore the current settings and folder, to bring them back with RESTORE.
RESTOREBring back the settings and folder the last PRESERVE stored.
CACHEAccepted and has nothing to do: the data are always kept in memory.
CDChange the folder relative file names start from.
PROCEDURE OUTPUTName the file the next procedures write their results to.
FILE HANDLEGive a file or a folder a short name to use in place of its path.
DATASET NAMEGive the active dataset a name, so that it stays open when another one becomes active.
DATASET ACTIVATEMake a named dataset the active one.
DATASET COPYCopy the active dataset, as it is now, into a named dataset.
DATASET DECLAREReserve a dataset name for a dataset that a later command creates.
DATASET CLOSEClose a named dataset, or take the name off the active one.
DATASET DISPLAYList the open datasets.
USESet the historical period of the time series procedures, or use all cases.
DISPLAYShow dictionary information of the active dataset.
LISTList the values of cases.
TITLEPut a title in the output, above the output that follows.
SUBTITLEPut a subtitle in the output, above the output that follows.
ECHOShow a text in the output.
ERASEDelete a file.
PERMISSIONSMake a file read-only, or writeable for its owner.
HOSTRefused: Statscraft never runs operating system commands from syntax.
OUTPUT NEWStart a new output document, which gets the tables from now on.
OUTPUT NAMEName the output document that gets the tables.
OUTPUT ACTIVATESend the tables from now on to an open output document.
OUTPUT CLOSEClose an output document, or all of them.
OUTPUT DISPLAYList the open output documents.
OUTPUT EXPORTWrite the tables and charts of an output document to a workbook, document, presentation, PDF, web page, text or CSV file.
OUTPUT SAVESave an output document as a Statscraft output file (.scout).
OUTPUT OPENOpen a Statscraft output file (.scout) as a new output document.
OUTPUT MODIFYDelete, hide, rename, sort, transpose or reformat items of an output document.
OMSSend the tables, charts and warnings of the commands that follow to a file, or keep them out of the results.
OMSENDEnd OMS requests and the OMS log.
OMSINFOList the OMS requests in force.
OMSLOGKeep a log of when OMS requests start and end and which files they write.
BEGIN CHARTA Statscraft extension: a chart given as JSON goes to the output like a procedure’s chart.
FINISHEnd the job: the commands after it are not read.

General rules of the language

  A command ends at a line whose last character is a period, at a blank line, or at the end of input.
  Command names and keywords are case-insensitive and may be shortened to three or more letters.
  varlist: variable names, a range written as first TO last, or ALL.
  Strings use single or double quotes; double the quote character to include it. A string may
  run on over line breaks, which it keeps; 'a' + 'b' joins two strings into one.
  Comments: a command starting with * or COMMENT, or /* text */ inside a line.
  Expressions: + - * / **, = <> < > <= >= (or EQ NE LT GT LE GE), AND OR NOT (or & | ~),
  functions such as MEAN(a, b) or SUM(q1 TO q5); LAG(var [, n]) is the value n cases back.
  A function name may be shortened to three or more letters that start no other function.
  An expression nests at most 64 levels of parentheses and functions and holds at most 1500 operators (use SUM(x1 TO x2000) for a longer sum).
  Scratch variables start with #: they begin at 0 or blank, keep their value from case to case,
  are never saved and are gone when the next procedure starts. System variables: $CASENUM
  is the case number, $SYSMIS the system-missing value, $JDATE today as a day count (1 is
  15 October 1582), $DATE and $DATE11 today as dd-mmm-yy and dd-mmm-yyyy text, $TIME now in
  seconds (a date value), $LENGTH and $WIDTH the SET LENGTH and WIDTH.

Functions of expressions (COMPUTE, IF, SELECT IF, DO IF, ELSE IF, LOOP IF, END LOOP IF):
  Arithmetic: ABS RND TRUNC MOD SQRT EXP LN LG10 LNGAMMA SIN COS TAN ARSIN ARCOS ARTAN.
  Statistical, with .n for the valid values needed (MEAN.2): SUM MEAN MEDIAN MIN MAX SD VARIANCE
  CFVAR. Missing values: MISSING SYSMIS VALUE NMISS NVALID. Logical: ANY RANGE. Also LAG and
  VALUELABEL.
  Strings: CONCAT LENGTH CHAR.LENGTH UPCASE LOWER LTRIM RTRIM NTRIM SUBSTR CHAR.SUBSTR INDEX
  CHAR.INDEX RINDEX CHAR.RINDEX LPAD CHAR.LPAD RPAD CHAR.RPAD REPLACE STRUNC CHAR.MBLEN
  MBLEN.BYTE NORMALIZE NUMBER STRING.
  Dates and times: DATE.DMY DATE.MDY DATE.MOYR DATE.QYR DATE.WKYR DATE.YRDAY YRMODA TIME.DAYS
  TIME.HMS CTIME.DAYS CTIME.HOURS CTIME.MINUTES CTIME.SECONDS XDATE.DATE XDATE.HOUR XDATE.JDAY
  XDATE.MDAY XDATE.MINUTE XDATE.MONTH XDATE.QUARTER XDATE.SECOND XDATE.TDAY XDATE.TIME
  XDATE.WEEK XDATE.WKDAY XDATE.YEAR DATEDIFF DATESUM (units years quarters months weeks days
  hours minutes seconds; DATESUM methods 'closest', the default, and 'rollover').
  Distributions: CDFNORM PROBIT, and CDF.d IDF.d PDF.d NCDF.d NPDF.d SIG.d RV.d where the
  distribution d has them: BERNOULLI BETA BINOM BVNOR CAUCHY CHISQ EXP F GAMMA GEOM HALFNRM HYPER
  IGAUSS LAPLACE LNORMAL LOGISTIC NEGBIN NORMAL PARETO POISSON SMOD SRANGE T UNIFORM WEIBULL
  (NCDF and NPDF: BETA CHISQ F T; SIG: CHISQ F). UNIFORM(max), NORMAL(sd) and the RV functions
  draw random numbers. An argument out of range gives system-missing.