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.

1710 Appendix C<br />

FILE TYPE GROUPED RECORD=#REC 3(A) CASE=STUDENT 1.<br />

RECORD TYPE ’R’.<br />

DATA LIST / READING 5-6.<br />

RECORD TYPE ’M’ CASE=2.<br />

DATA LIST / MATH 5-6.<br />

RECORD TYPE ’S’.<br />

DATA LIST / SCIENCE 5-6.<br />

END FILE TYPE.<br />

BEGIN DATA<br />

1 S 97<br />

1 R 58<br />

1M 59<br />

2 R 43<br />

3 R 67<br />

3M 75<br />

END DATA.<br />

LIST.<br />

• FILE TYPE indicates that the data are in grouped format. RECORD defines the variable<br />

containing record codes as string variable #REC. CASE defines the case identifier<br />

variable as STUDENT in the first column of each record.<br />

• One pair of RECORD TYPE and DATA LIST statements is coded for each record type<br />

in the file.<br />

• The CASE specification on the RECORD TYPE statement for math records overrides<br />

the CASE value defined on FILE TYPE. Thus, the program reads STUDENT in<br />

column 2 in math records and column 1 in other records.<br />

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

• BEGIN DATA and END DATA indicate that data are inline.<br />

• The output from LIST is identical to that in Figure C.7.<br />

Mixed Files<br />

In a mixed file, different types of cases have different kinds of records. You can use FILE<br />

TYPE MIXED to read each record or a subset of records in a mixed file.<br />

Reading Each Record in a Mixed File<br />

Table C.3 shows test data for two hypothetical elementary school students referred to a<br />

remedial education teacher. Student 1, who was thought to need special reading atten-

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

Saved successfully!

Ooh no, something went wrong!