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 MODEL
saves 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 NAME
command. In addition to the model specifications, theTSET
settings 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 MODEL
is 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 MODEL
command. -
DATE
specifications 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 MODEL
command:AREG
,ARIMA
,EXSMOOTH
,SEASON
, andSPECTRA
in the Forecasting module;ACF
,CASEPLOT
,CCF
,CURVEFIT
,PACF
,PPLOT
, andTSPLOT
in the Core system; andWLS
and2SLS
in the Regression module.
Limitations
- A maximum of one filename can be specified.
- The
READ MODEL
command can only read models created by aSAVE MODEL
command on the same operating system/platform.