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

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.

All commands