OUTFILE Subcommand (REGRESSION command)

OUTFILE saves the parameter covariance or correlation matrix with parameter estimates, standard errors, significance values, and residual degrees of freedom for each term in the final equation in IBM® SPSS® Statistics format data files. It also saves model information in XML format.

  • The OUTFILE subcommand must follow the last METHOD subcommand.
  • Only one OUTFILE subcommand is allowed. If you specify more than one, only the last one is executed.
  • You must specify at least one keyword and a quoted file specification , enclosed in parentheses. For COVB and CORB, you can specify a previously declared dataset (DATASET DECLARE command) instead of a file.
  • You cannot save the parameter statistics as the active dataset.
  • COVB and CORB are mutually exclusive.
  • MODEL cannot be used if split file processing is on (SPLIT FILE command) or if more than one dependent (DEPENDENT subcommand) variable is specified.
  • If you specify an external file name, you should include the .sav extension in the specification. There is no default extension.

COVB ('savfile'|'dataset'). Write the parameter covariance matrix with other statistics.

CORB ('savfile'|'dataset'). Write the parameter correlation matrix with other statistics.

MODEL ('file'). Write model information to an XML file. You can use this model file to apply the model information to other data files for scoring purposes. See the topic Scoring expressions for more information.

PARAMETER('file'). Write parameter estimates only to an XML file. You can use this model file to apply the model information to other data files for scoring purposes. See the topic Scoring expressions for more information.

Example

REGRESSION DEPENDENT=Y
 /METHOD=ENTER X1 X2
 /OUTFILE CORB ('/data/covx1x2y.sav').
  • The OUTFILE subcommand saves the parameter correlation matrix, and the parameter estimates, standard errors, significance values, and residual degrees of freedom for the constant term, X1 and X2.