SAVE Subcommand (LOGISTIC REGRESSION command)
SAVE saves the temporary variables that are created by LOGISTIC REGRESSION. To specify variable names for the new variables, assign the new names in parentheses following each temporary variable name. If new variable names are not specified, LOGISTIC REGRESSION generates default names.
- Assigned variable names must be unique in the active dataset. Scratch or system variable names (that is, names that begin with # or $) cannot be used.
- A temporary variable can be saved only once on the same SAVE subcommand.
Example
LOGISTIC REGRESSION VARIABLES = PROMOTED WITH JOBTIME AGE
/SAVE PRED (PREDPRO) DFBETA (DF).
- A logistic regression analysis of PROMOTED on the independent variables JOBTIME and AGE is performed.
- SAVE adds four variables to the active dataset: one variable named PREDPRO, containing the predicted value from the specified model for each case, and three variables named DF0, DF1, and DF2, containing, respectively, the DFBETA values for each case of the constant, the independent variable JOBTIME, and the independent variable AGE.