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.

292 COUNT<br />

Operations<br />

Example<br />

Example<br />

Example<br />

• Target variables are always numeric and are initialized to 0 for each case. They are assigned<br />

a dictionary format of F8.2.<br />

• If the target variable already exists, its previous values are replaced.<br />

• COUNT ignores the missing-value status of user-missing values. It counts a value even if<br />

that value has been previously declared as missing.<br />

• The target variable is never system-missing. To define user-missing values for target variables,<br />

use the RECODE or MISSING VALUES command.<br />

• SYSMIS counts system-missing values for numeric variables.<br />

• MISSING counts both user- and system-missing values for numeric variables.<br />

COUNT TARGET=V1 V2 V3 (2).<br />

• The value of TARGET for each case will be either 0, 1, 2, or 3, depending on the number<br />

of times the value 2 occurs across the three variables for each case.<br />

• TARGET is a numeric variable with an F8.2 format.<br />

COUNT QLOW=Q1 TO Q10 (LO THRU 0)<br />

/QSYSMIS=Q1 TO Q10 (SYSMIS).<br />

• Assuming that there are 10 variables between and including Q1 and Q10 in the working<br />

data file, QLOW ranges from 0 to 10, depending on the number of times a case has a negative<br />

or 0 value across the variables Q1 to Q10.<br />

• QSYSMIS ranges from 0 to 10, depending on how many system-missing values are encountered<br />

for Q1 to Q10 for each case. User-missing values are not counted.<br />

• Both QLOW and QSYSMIS are numeric variables and have F8.2 formats.<br />

COUNT SVAR=V1 V2 (’male ’) V3 V4 V5 (’female’).<br />

• SVAR ranges from 0 to 5, depending on the number of times a case has a value of male<br />

for V1 and V2 and a value of female for V3, V4, and V5.<br />

• SVAR is a numeric variable with an F8.2 format.

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

Saved successfully!

Ooh no, something went wrong!