SAVE Subcommand (GENLOG command)
SAVE
saves
specified temporary variables into the active dataset. You can assign
a new name to each temporary variable saved.
- The temporary variables you can save include RESID (raw residual), ZRESID (standardized residual), ADJRESID (adjusted residual), DEV (deviance residual), and PRED (predicted cell frequency). An explanatory label is assigned to each saved variable.
- A temporary variable can be saved only once on a
SAVE
subcommand. - To assign a name to a saved temporary variable, specify the new name in parentheses following that temporary variable. The new name must conform to IBM® SPSS® Statistics naming conventions and must be unique in the active dataset. The names cannot begin with # or $.
- If you do not specify a variable name in parentheses,
GENLOG
assigns default names to the saved temporary variables. A default name starts with the first three characters of the name of the saved temporary variable, followed by an underscore and a unique number. For example, RESID will be saved as RES_n, where n is a number incremented each time a default name is assigned to a saved RESID. - The saved variables are pertinent to cells in the contingency table, not to individual observations. In the Data Editor, all cases that define one cell receive the same value. To make sense of these values, you need to aggregate the data to obtain cell counts.
Example
GENLOG A B
/SAVE PRED (PREDA_B)
/DESIGN = A, B.
-
SAVE
saves the predicted values for two independent variables A and B. - The saved variable is renamed PREDA_B and added to the active dataset.