Statscraft 0.61.0, release v0.61.0
Transformations
| 命令 | 功能 {#what-it-does} |
|---|---|
| COMPUTE | Assign the value of an expression to a variable. |
| IF | Assign a value only for the cases where a condition holds. |
| DO IF | Start a block of transformations that run only where a condition holds. |
| ELSE IF | Start the next conditional branch of a DO IF block. |
| ELSE | Start the branch of a DO IF block for the cases no condition matched. |
| END IF | End a DO IF block. |
| RECODE | Map values of variables to new values. |
| COUNT | Count, per case, how many variables hold one of the listed values. |
| SELECT IF | Keep only the cases where a condition holds. |
| STRING | Declare new string variables, filled with empty strings. |
| NUMERIC | Declare new numeric variables, filled with system-missing. |
| LEAVE | Keep the values of new variables from case to case instead of resetting them. |
| EXECUTE | Run the pending transformations. |
| DO REPEAT | Repeat transformations with stand-in names replaced by variables or values. |
| LOOP | Repeat transformations for each case, with an index, a condition or both. |
| END LOOP | End a LOOP, optionally when a condition holds. |
| BREAK | Leave the innermost LOOP, usually inside DO IF. |
| VECTOR | Name a range of variables, or new variables, as a vector for indexed use. |
| AUTORECODE | Recode values into consecutive integers in new variables, labeled with the old values. |
| RANK | Ranks, percentile groups, proportion estimates, normal and Savage scores as new variables. |
| DATE | Add date variables that count the cases of a time series. |
| Show the values of variables for every case, as lines of text. | |
| PRINT EJECT | Like PRINT, starting a new page each time it runs. |
| PRINT SPACE | Add blank lines to the PRINT output, for every case it runs on. |
| WRITE | Write the values of variables for every case to a text file. |
| CLEAR TRANSFORMATIONS | Undo the transformations and dictionary changes since the last data pass. |