Overview (SAVE MODEL command)
SAVE MODEL saves the models that are created by certain procedures in a model
file. The saved model file can be read later in the session or in
another session with the READ MODEL command.
Options
You can save a
subset of models into the file using the DROP and KEEP subcommands.
You can use the TYPE subcommand
to control whether models are specified by model name or by the name
of the procedure that generated them.
Basic Specification
The basic
specification is the OUTFILE subcommand
followed by a filename.
- By default,
SAVE MODELsaves all currently active models in the specified file. Each model that is saved in the file includes information such as the procedure that created it, the model name, the specified variable names, subcommands and specifications used, and parameter estimates. The names of the models are either the default MOD_n names or the names that are assigned on theMODEL NAMEcommand. In addition to the model specifications, theTSETsettings that are currently in effect are saved.
Subcommand Order
- Subcommands can be specified in any order.
Syntax Rules
- If a subcommand is specified more than once, only the last subcommand is executed.
Operations
-
SAVE MODELis executed immediately. - Model files are designed to be written and read by specific procedures and should not be edited.
- The active models are not affected by the
SAVE MODELcommand. -
DATEspecifications are not saved in the model file. - Models are not saved in IBM® SPSS® Statistics data files.
- The following procedures can generate models that can be saved with
the
SAVE MODELcommand:AREG,ARIMA,EXSMOOTH,SEASON, andSPECTRAin the Forecasting module;ACF,CASEPLOT,CCF,CURVEFIT,PACF,PPLOT, andTSPLOTin the Core system; andWLSand2SLSin the Regression module.
Limitations
- A maximum of one filename can be specified.
- The
READ MODELcommand can only read models created by aSAVE MODELcommand on the same operating system/platform.