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.

VARIABLES Subcommand<br />

TSPLOT 1575<br />

VARIABLES specifies the names of the variables to be plotted and is the only required<br />

subcommand. The actual keyword VARIABLES can be omitted.<br />

DIFF Subcommand<br />

DIFF specifies the degree of differencing used to convert a nonstationary variable to a<br />

stationary one with a constant mean and variance before plotting.<br />

• You can specify any positive integer on DIFF.<br />

• If DIFF is specified without a value, the default is 1.<br />

• The number of values plotted decreases by 1 for each degree of differencing.<br />

Example<br />

TSPLOT TICKETS<br />

/DIFF=2.<br />

• In this example, TICKETS is differenced twice before plotting.<br />

SDIFF Subcommand<br />

If the variable exhibits a seasonal or periodic pattern, you can use the SDIFF subcommand to<br />

seasonally difference the variable before plotting.<br />

• The specification on SDIFF indicates the degree of seasonal differencing and can be any<br />

positive integer.<br />

• If SDIFF is specified without a value, the degree of seasonal differencing defaults to 1.<br />

• The number of seasons plotted decreases by 1 for each degree of seasonal differencing.<br />

• The length of the period used by SDIFF is specified on the PERIOD subcommand. If the<br />

PERIOD subcommand is not specified, the periodicity established on the TSET or DATE<br />

command is used (see the PERIOD subcommand below).<br />

PERIOD Subcommand<br />

PERIOD indicates the length of the period to be used by the SDIFF subcommand.<br />

• The specification on PERIOD indicates how many observations are in one period or<br />

season and can be any positive integer.<br />

• If PERIOD is not specified, the periodicity established on TSET PERIOD is in effect. If<br />

TSET PERIOD is not specified, the periodicity established on the DATE command is used.<br />

If periodicity was not established anywhere, the SDIFF subcommand will not be executed.

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

Saved successfully!

Ooh no, something went wrong!