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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Limitations<br />

Example<br />

ACF 73<br />

• Maximum 1 VARIABLES subcommand. There is no limit on the number of series named<br />

on the list.<br />

ACF TICKETS<br />

/LN<br />

/DIFF=1<br />

/SDIFF=1<br />

/PER=12<br />

/MXAUTO=50.<br />

• This example produces a plot of the autocorrelation function for the series TICKETS after<br />

a natural log transformation, differencing, and seasonal differencing have been applied.<br />

Along with the plot, the autocorrelation value, standard error, Box-Ljung statistic, and<br />

probability are displayed for each lag.<br />

• LN transforms the data using the natural logarithm (base e) of the series.<br />

• DIFF differences the series once.<br />

• SDIFF and PERIOD apply one degree of seasonal differencing with a period of 12.<br />

• MXAUTO specifies that the maximum number of lags for which output is to be produced<br />

is 50.<br />

VARIABLES Subcommand<br />

VARIABLES specifies the series names and is the only required subcommand. The actual keyword<br />

VARIABLES can be omitted.<br />

DIFF Subcommand<br />

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

one with a constant mean and variance before the autocorrelations are computed.<br />

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

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

• The number of values used in the calculations decreases by 1 for each degree-1 of differencing.<br />

Example<br />

ACF SALES<br />

/DIFF=1.<br />

• In this example, the series SALES will be differenced once before the autocorrelations are<br />

computed and plotted.

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

Saved successfully!

Ooh no, something went wrong!