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.

CREATE<br />

CREATE new series={CSUM (series) }<br />

{DIFF (series, order) }<br />

{FFT (series) }<br />

{IFFT (series) }<br />

{LAG (series, order [,order ]) }<br />

{LEAD (series, order [,order ]) }<br />

{MA (series, span [,minimum span]) }<br />

{PMA (series, span) }<br />

{RMED (series, span [,minimum span]) }<br />

{SDIFF (series, order [,periodicity])}<br />

{T4253H (series) }<br />

[/new series=function (series {,span {,minimum span}})]<br />

{,order {,order }}<br />

{,periodicity }<br />

Function keywords:<br />

CSUM Cumulative sum<br />

DIFF Difference<br />

FFT Fast Fourier transform<br />

IFFT Inverse fast Fourier transform<br />

LAG Lag<br />

LEAD Lead<br />

MA Centered moving averages<br />

PMA Prior moving averages<br />

RMED Running medians<br />

SDIFF Seasonal difference<br />

T4253H Smoothing<br />

Example<br />

Overview<br />

CREATE NEWVAR1 NEWVAR2 = CSUM(TICKETS RNDTRP).<br />

CREATE produces new series as a function of existing series. You can also use CREATE to<br />

replace the values of existing series. The new or revised series can be used in any procedure<br />

and can be saved in an SPSS-format data file.<br />

CREATE displays a list of the new series, the case numbers of the first and last<br />

nonmissing cases, the number of valid cases, and the functions used to create the variables.<br />

Basic Specification<br />

The basic specification is a new series name, an equals sign, a function, and the existing<br />

series, along with any additional specifications needed.<br />

307

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

Saved successfully!

Ooh no, something went wrong!