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.

CCF 221<br />

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

• DIFF differences each series once.<br />

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

• MXCROSS specifies 25 for the maximum range of positive and negative lags for which<br />

output is to be produced (lags −25 to +25).<br />

VARIABLES Subcommand<br />

VARIABLES specifies the series to be plotted and is the only required subcommand. The<br />

actual keyword VARIABLES can be omitted.<br />

• The minimum VARIABLES specification is a pair of series names.<br />

• If you do not use keyword WITH, each series is paired with every other series in the list.<br />

• If you specify keyword WITH, every series named before WITH is paired with every series<br />

named after WITH.<br />

Example<br />

CCF VARIABLES=VARA VARB WITH VARC VARD.<br />

• This example displays and plots the cross-correlation functions for the following pairs of<br />

series: VARA with VARC, VARA with VARD, VARB with VARC, and VARB with VARD.<br />

• VARA is not paired with VARB, and VARC is not paired with VARD.<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 obtaining cross-correlations.<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 of differencing.<br />

Example<br />

CCF VARX VARY<br />

/DIFF=1.<br />

• This command differences series VARX and VARY before calculating and plotting the<br />

cross-correlation function.<br />

SDIFF Subcommand<br />

If the series exhibits seasonal or periodic patterns, you can use SDIFF to seasonally difference<br />

the series before obtaining cross-correlations.

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

Saved successfully!

Ooh no, something went wrong!