Search code examples
variablesregressionspss

Custom names for predicted variable in spss


The /SAVE PRED. command creates a variable named "PRE_1"

Is there a way I can write a command that I want the saved variable to be named as "Italy_Model1_B_Predicted_Value"

Thanks


Solution

  • In the linear regression procedure you can specify what you want to name the variable in parenthesis after the PRED keyword, e.g. /SAVE PRED (Italy_Model1_B_Predicted_Value). It works the same way for many of the different regression procedures.

    You can of course just use RENAME VARIABLES as eli-k stated in comments, but note if PRE_1 already exists in the dataset, then SPSS will write the new predicted value as PRE_2.