SCATTERPLOT Subcommand (REGRESSION command)
SCATTERPLOT
names pairs of variables for scatterplots.
- The minimum specification for
SCATTERPLOT
is a pair of variables in parentheses. There are no default specifications. - You can specify as many pairs of variables in parentheses as you want.
- The first variable named in each set of parentheses is plotted along the vertical axis, and the second variable is plotted along the horizontal axis.
- Plotting symbols are used to represent multiple points occurring at the same position.
- You can specify any variable named on the
VARIABLES
subcommand. - You can specify PRED, RESID, ZPRED, ZRESID, DRESID, ADJPRED, SRESID, SDRESID, SEPRED, MAHAL, COOK, and LEVER. The specification of any other temporary variables will result in an error.
- Specify an asterisk before temporary variable names to distinguish them from user-defined variables. For example, use *PRED to specify PRED.
Example
/SCATTERPLOT (*RES,*PRE)(*RES,SAVINGS)
- This example specifies two scatterplots: residuals against predicted values and residuals against the values of the variable SAVINGS.