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.

1726 Appendix D<br />

• !TOKENS(1) specifies that the value of an argument is a string that follows the name of<br />

the argument in the macro call. Thus the first macro call specifies values of 0.66, 30,<br />

and 0.85 for R, N, and P.<br />

• <strong>Command</strong>s between INPUT PROGRAM and END INPUT PROGRAM create a working<br />

data file with one case. COMPUTE statements calculate the Z statistic and its probability<br />

using the values of macro arguments R, N, and P. (INPUT PROGRAM commands<br />

would not be needed if COMPUTE statements operated on values in an existing file or<br />

inline data, rather than macro arguments.)<br />

• A customized TITLE shows displays the values of macro arguments used in<br />

computing Z.<br />

• The LIST command displays Z and its probability.<br />

• The !CORRTST macro is called twice in Figure D.12. The first invocation tests an r of<br />

0.66 from a sample of 30 cases against a population coefficient of 0.85 (this generates<br />

the same Z value and probability as in Figure D.11). The second macro call tests an r<br />

of 0.50 from a sample of 50 cases against the same population correlation coefficient.<br />

The output from these macro calls is shown in Figure D.13.<br />

Figure D.13 Output from !CORRTST<br />

SAMPLE R= .66 , N= 30 , POPULATION COEFFICIENT= .85<br />

Z PROB<br />

-2.41 .016<br />

SAMPLE R= .50 , N= 50 , POPULATION COEFFICIENT= .85<br />

Z PROB<br />

-4.85 .000<br />

Figure D.14 shows a modified !CORRTST macro that you can use to test a sample r<br />

against each coefficient in a list of population coefficients.

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

Saved successfully!

Ooh no, something went wrong!