04.08.2013 Views

User Guide for the TIMSS International Database.pdf - TIMSS and ...

User Guide for the TIMSS International Database.pdf - TIMSS and ...

User Guide for the TIMSS International Database.pdf - TIMSS and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

P E R F O R M I N G A N A L Y S E S C H A P T E R 9<br />

Figure 9.4<br />

Extract from SPSS Control Code <strong>for</strong> Creating a Student Background SPSS Data Set<br />

*NOTE: Assignment of variable names.<br />

data list file = bsg1.dat<br />

/ VERSION 1 - 2<br />

.<br />

.{INSERT VARIABLE NAME FORMAT AND LOCATION HERE}<br />

.<br />

*NOTE: Assignment of variable labels.<br />

variable labels VERSION "*FILE VERSION*"<br />

.<br />

.{INSERT VARIABLE LABELS HERE}<br />

.<br />

VALUE LABELS<br />

IDPOP 1 "population 1"<br />

2 "population 2"<br />

3 "population 3"<br />

/<br />

.<br />

.{INSERT VARIABLE LABELS HERE}<br />

.<br />

*RECODE of sysmis-values.<br />

RECODE IDSTRAT (999 = sysmis).<br />

.<br />

.{INSERT RECODES OF MISSING VALUES HERE}<br />

.<br />

*RECODE of o<strong>the</strong>r missing-values.<br />

MISSING value IDSTRAT (998 ).<br />

.<br />

.{DEFINE MISSING VALUES HERE}<br />

.<br />

SAVE OUTFILE = bsg.sys.<br />

T I M S S D A T A B A S E U S E R G U I D E 9 - 7

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

Saved successfully!

Ooh no, something went wrong!