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.

<strong>Syntax</strong> Rules<br />

Operations<br />

Limitations<br />

Example<br />

OUTFILE Subcommand<br />

• If a subcommand is specified more than once, only the last one is executed.<br />

SAVE MODEL 1457<br />

• SAVE MODEL is executed immediately.<br />

• Model files are designed to be read and written by Trends only and should not be edited.<br />

• The active models are not affected by the SAVE MODEL command.<br />

• DATE specifications are not saved in the model file.<br />

• Models are not saved in SPSS data files.<br />

• The following procedures can generate models: AREG, ARIMA, EXSMOOTH, SEASON,<br />

and SPECTRA in SPSS Trends; ACF, CASEPLOT, CCF, CURVEFIT, NPPLOT, PACF, and<br />

TSPLOT in the SPSS Base system; and WLS and 2SLS in SPSS Regression Models.<br />

• Maximum 1 filename can be specified.<br />

SAVE MODEL OUTFILE=’ACFMOD.DAT’<br />

/DROP=MOD_1.<br />

• In this example, all models except MOD_1 that are currently active are saved in the file<br />

ACFMOD.DAT.<br />

OUTFILE names the file where models will be stored and is the only required subcommand.<br />

• The only specification on OUTFILE is the name of the model file.<br />

• The filename must be enclosed in apostrophes.<br />

• Only one filename can be specified.<br />

• You can store models in other directories by specifying a fully qualified filename.<br />

KEEP and DROP Subcommands<br />

DROP and KEEP allow you to save a subset of models. By default, all currently active models<br />

are saved.<br />

• KEEP specifies models to be saved in the model file.<br />

• DROP specifies models that are not saved in the model file.

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

Saved successfully!

Ooh no, something went wrong!