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.

1534 SPLIT FILE<br />

• AGGREGATE ignores the SPLIT FILE command. To split files using AGGREGATE, name<br />

the variables used to split the file as break variables ahead of any other break variables on<br />

AGGREGATE. AGGREGATE still produces one file, but the aggregated cases are in the<br />

same order as the split-file groups.<br />

• If SPLIT FILE is in effect when a procedure writes matrix materials, the program writes<br />

one set of matrix materials for every split group. If a procedure reads a file that contains<br />

multiple sets of matrix materials, the procedure automatically detects the presence of<br />

multiple sets.<br />

• If SPLIT FILE names any variable that was defined by the NUMERIC command, the program<br />

prints page headings indicating the split-file grouping.<br />

Limitations<br />

• SPLIT FILE can specify or imply up to eight variables.<br />

LAYERED and SEPARATE Subcommands<br />

Example<br />

LAYERED and SEPARATE specify how split-file groups are displayed in the output.<br />

• Only one of them can be specified. If neither is specified with the BY variable list, LAYERED<br />

is the default.<br />

• LAYERED and SEPARATE do not apply to the text output.<br />

LAYERED Display split-file groups in the same table in the outermost column.<br />

SEPARATE Display split-file groups as separate tables.<br />

SORT CASES BY SEX.<br />

SPLIT FILE BY SEX.<br />

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

• SORT CASES arranges cases in the file according to the values of variable SEX.<br />

• SPLIT FILE splits the file according to the values of variable SEX, and FREQUENCIES generates<br />

separate median income tables for men and women.<br />

• By default, the two groups (men and women) are compared in the same Frequency and<br />

Statistics tables.<br />

Example<br />

SORT CASES BY SEX.<br />

TEMPORARY.<br />

SPLIT FILE SEPARATE BY SEX.<br />

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

FREQUENCIES VARS=INCOME /STATISTICS=MEDIAN.

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

Saved successfully!

Ooh no, something went wrong!