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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LN and NOLOG Subcommands<br />

CASEPLOT 175<br />

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

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 CASEPLOT, any differencing requested on that command will be<br />

done on the log-transformed variable.<br />

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

• Only the last LN or NOLOG subcommand on a CASEPLOT 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 />

CASEPLOT 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 the left-axis labels.<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 />

• ID overrides the specification on TSET ID.<br />

• If ID or TSET ID is not specified, the left vertical axis is labeled with the DATE_ variable<br />

created by the DATE command. If the DATE_ variable has not been created, the observation<br />

or sequence number is used as the label.<br />

Example<br />

CASEPLOT VARA<br />

/ID=VARB.<br />

• In this example, the values of variable VARB will be used to label the left axis of the plot<br />

of VARA.<br />

FORMAT Subcommand<br />

FORMAT controls the plot format.<br />

• The specification on FORMAT is one of the keywords listed below.<br />

• Keywords NOFILL, LEFT,NOREFERENCE, and REFERENCE apply to plots with one variable.<br />

NOFILL and LEFT are alternatives and indicate how the plot is filled. NOREFERENCE<br />

and REFERENCE are alternatives and specify whether a reference line is displayed. One

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

Saved successfully!

Ooh no, something went wrong!