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.

1712 Appendix C<br />

Figure C.8 LIST output for mixed file<br />

TEST ID GRADE WORD COMPRE HANDWRIT SPELLING VOCAB GRAMMAR<br />

READING 1 4 65 35 . . . .<br />

WRITING 2 3 . . 50 55 30 25<br />

• Figure C.8 shows the output from LIST. Missing values are assigned for variables that<br />

are not recorded for a case.<br />

Reading a Subset of Records in a Mixed File<br />

You may want to process a subset of records in a mixed file. The following commands<br />

read only the data for the student who took reading tests:<br />

FILE TYPE MIXED RECORD=TEST 1-7(A).<br />

RECORD TYPE ’READING’.<br />

DATA LIST / ID 9-10<br />

GRADE 12-13<br />

WORD 15-16<br />

COMPRE 18-19.<br />

RECORD TYPE ’WRITING’.<br />

DATA LIST / ID 9-10<br />

GRADE 12-13<br />

HANDWRIT 15-16<br />

SPELLING 18-19<br />

VOCAB 21-22<br />

GRAMMAR 24-25.<br />

END FILE TYPE.<br />

BEGIN DATA<br />

READING 1 04 65 35<br />

WRITING 2 03 50 55 30 25<br />

END DATA.<br />

LIST.<br />

• FILE TYPE specifies that data contain mixed record types. RECORD defines the<br />

record identification variable as TEST in columns 1 through 7.<br />

• RECORD TYPE defines variables on reading records. Since the program skips all<br />

record types that are not defined by default, the case with writing scores is not read.<br />

• END FILE TYPE signals the end of file definition.<br />

• BEGIN DATA and END DATA indicate that data are inline. Data are identical to those<br />

in the previous example.<br />

• Figure C.9 shows the output from LIST.

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

Saved successfully!

Ooh no, something went wrong!