27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SAVE Subcommand<br />

NLR 1053<br />

SAVE is used to save the temporary variables for the predicted values, residuals, and derivatives<br />

created by the model and the derivatives programs.<br />

• The minimum specification is a single keyword.<br />

• The variables to be saved must have unique names on the working data file. If a naming<br />

conflict exists, the variables are not saved.<br />

• Temporary variables, for example, variables created after a TEMPORARY command and<br />

parameters specified by the model program, are not saved in the working data file. They<br />

will not cause naming conflicts.<br />

The following keywords are available and can be used in any combination and in any order.<br />

The new variables are always appended to the working data file in the order in which these<br />

keywords are presented here:<br />

PRED Save the predicted values. The variable’s name, label, and formats are<br />

those specified for it (or assigned by default) in the model program.<br />

RESID [(varname)] Save the residuals variable. You can specify a variable name in parentheses<br />

following the keyword. If no variable name is specified, the<br />

name of this variable is the same as the specification you use for this<br />

keyword. For example, if you use the three-character abbreviation<br />

RES, the default variable name will be RES. The variable has the same<br />

print and write format as the predicted values variable created by the<br />

model program. It has no variable label and no user-defined missing<br />

values. It is system-missing for any case in which either the dependent<br />

variable is missing or the predicted value cannot be computed.<br />

DERIVATIVES Save the derivative variables. The derivative variables are named with<br />

the prefix D. to the first six characters of the parameter names. Derivative<br />

variables use the print and write formats of the predicted values<br />

variable and have no value labels or user-missing values. Derivative<br />

variables are saved in the same order as the parameters named on<br />

MODEL PROGRAM. Derivatives are saved for all parameters, whether<br />

or not the derivative was supplied in the derivatives program.<br />

LOSS Save the user-specified loss function variable. This specification is<br />

available only with CNLR and only if the LOSS subcommand has been<br />

specified.<br />

Asymptotic standard errors of predicted values and residuals, and special residuals used for<br />

outlier detection and influential case analysis are not provided by the [C]NLR procedure.<br />

However, for a squared loss function, the asymptotically correct values for all these statistics<br />

can be calculated using the SAVE subcommand with [C]NLR and then using the REGRESSION<br />

procedure. In REGRESSION, the dependent variable is still the same, and derivatives of the<br />

model parameters are used as independent variables. Casewise plots, standard errors of<br />

prediction, partial regression plots, and other diagnostics of the regression are valid for the<br />

nonlinear model.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!