General points regarding SPSS transformation commands
We are going to discuss a few pointers of the tranform commands from the discussion so far:
- Any of the basic transformation commands (
RECODE
,COMPUTE
,COUNT
, andIF
) can be included within aDO IF
structure. Statistical procedures and special purpose procedures such asAUTORECODE
andOPTIMAL BINNING
cannot be put inside aDO IF
structure. - Transformation commands, unlike statistical procedures, are not executed immediately. If you create a command such as
RECODE
orCOMPUTE
using a dialog box, anEXECUTE
command is included automatically, so the command gets processed. If you create aCOMPUTE
command in syntax and run the command, aTranformations pending
message appears at the bottom of each SPSS window you have open. - New variables created by transformation commands are added to the active data file and can be saved to the file when you end a session. If you do not save a new version of the original file, the fields created will not be available...