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.

Example<br />

SPLIT FILE 1535<br />

• Because of the TEMPORARY command, SPLIT FILE applies to the first procedure only.<br />

Thus, the first FREQUENCIES procedure generates separate tables for men and women.<br />

The second FREQUENCIES procedure generates tables that include both sexes.<br />

SORT CASES BY SEX.<br />

SPLIT FILE SEPARATE BY SEX.<br />

FREQUENCIES VARS=INCOME /STATISTICS=MEDIAN.<br />

SPLIT FILE OFF.<br />

FREQUENCIES VARS=INCOME /STATISTICS=MEDIAN.<br />

• SPLIT FILE does not apply to the second FREQUENCIES procedure because it is turned off<br />

after the first FREQUENCIES procedure. This example produces the same results as the<br />

example above.<br />

Example<br />

SORT CASES BY SEX RACE.<br />

SPLIT FILE BY SEX.<br />

FREQUENCIES VARS=INCOME /STATISTICS=MEDIAN.<br />

SPLIT FILE BY SEX RACE.<br />

FREQUENCIES VARS=INCOME /STATISTICS=MEDIAN.<br />

• The first SPLIT FILE command applies to the first FREQUENCIES procedure. The second<br />

SPLIT FILE command overrides the first and splits the file by sex and race. This split is in<br />

effect for the second FREQUENCIES procedure.

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

Saved successfully!

Ooh no, something went wrong!