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.

308 CREATE<br />

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

• The existing series together with any additional specifications (order, span, or periodicity)<br />

must be enclosed in parentheses.<br />

• The equals sign is required.<br />

• Series names and additional specifications must be separated by commas or spaces.<br />

• You can specify only one function per equation.<br />

• You can create more than one new series per equation by specifying more than one new<br />

series name on the left side of the equation and either multiple existing series names or<br />

multiple orders on the right.<br />

• The number of new series named on the left side of the equation must equal the number<br />

of series created on the right. Note that the FFT function creates two new series for each<br />

existing series, and IFFT creates one series from two existing series.<br />

• You can specify more than one equation on a CREATE command. Equations are separated<br />

by slashes.<br />

• A newly created series can be specified in subsequent equations on the same CREATE command.<br />

Operations<br />

• Each new series created is added to the working data file.<br />

• If the new series named already exist, their values are replaced.<br />

• If the new series named do not already exist, they are created.<br />

• Series are created in the order in which they are specified on the CREATE command.<br />

• If multiple series are created by a single equation, the first new series named is assigned<br />

the values of the first series created, the second series named is assigned the values of the<br />

second series created, and so on.<br />

• CREATE automatically generates a variable label for each new series describing the function<br />

and series used to create it.<br />

• The format of the new series is based on the function specified and the format of the existing<br />

series.<br />

• CREATE honors the TSET MISSING setting that is currently in effect.<br />

• CREATE does not honor the USE command.<br />

• When an even-length span is specified for functions MA and RMED, the centering algorithm<br />

uses an average of two spans of the specified length. The first span ranges from<br />

span/2 cases before the current observation to the span length. The second span ranges<br />

from (span/2)−1 cases before the current observation to the span length.<br />

Limitations<br />

• Maximum 1 function per equation.<br />

• There is no limit on the number of series created by an equation.<br />

• There is no limit on the number of equations.

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

Saved successfully!

Ooh no, something went wrong!