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.

1576 TSPLOT<br />

Example<br />

TSPLOT TICKETS<br />

/SDIFF=1<br />

/PERIOD=12.<br />

• This command applies one degree of seasonal differencing with 12 observations per<br />

season to TICKETS before plotting.<br />

LN and NOLOG Subcommands<br />

LN transforms the data using the natural logarithm (base e) of the variable and is used to<br />

remove varying amplitude over time. NOLOG indicates that the data should not be log transformed.<br />

NOLOG is the default.<br />

• If you specify LN on TSPLOT, any differencing requested on that command will be done<br />

on the log-transformed variables.<br />

• There are no additional specifications on LN or NOLOG.<br />

• Only the last LN or NOLOG subcommand on a TSPLOT command is executed.<br />

• If a natural log transformation is requested, any value less than or equal to zero is set to<br />

system-missing.<br />

• NOLOG is generally used with an APPLY subcommand to turn off a previous LN specification.<br />

Example<br />

TSPLOT TICKETS<br />

/LN.<br />

• In this example, TICKETS is transformed using the natural logarithm before plotting.<br />

ID Subcommand<br />

ID names a variable whose values will be used as labels for the horizontal axis.<br />

• The only specification on ID is a variable name. If you have a variable named ID in your<br />

working data file, the equals sign after the subcommand is required.<br />

• If the ID subcommand is not used and TSET ID has not been specified, the axis is labeled<br />

with the DATE_ variable created by the DATE command. If the DATE command has not<br />

been specified, the observation number is used as the label.<br />

Example<br />

TSPLOT VARA<br />

/ID=VARB.<br />

• In this example the values of VARB will be used to label the horizontal axis of VARA at<br />

periodic intervals.

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

Saved successfully!

Ooh no, something went wrong!