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.14<br />

SPSS Control Statements <strong>for</strong> Per<strong>for</strong>ming Analyses with Teacher-Level Variables<br />

(EXAMPLE2.SPS)<br />

get file = "btmall1.sys"<br />

/ keep = idcntry idteach idlink btbgtaug.<br />

recode btbgtaug ( 0 thru 5 = 1) ( 6 thru 10 = 2)<br />

(10 thru 20 = 3) (20 thru 90 = 4)<br />

(98,99 = sysmis).<br />

sort cases by idcntry idteach idlink.<br />

save outfile = teacher.<br />

get file = "blgall1.sys"<br />

/ keep = idcntry idteach idlink idgrader jkindic jkzone matwgt bimatscr.<br />

select if matwgt > 0 <strong>and</strong> idgrader=2.<br />

sort cases by idcntry idteach idlink.<br />

save outfile= studteac.<br />

* Now merge <strong>the</strong> two files.<br />

match files<br />

/ file=studteac<br />

/ table=teacher<br />

/ by idcntry idteach idlink.<br />

select if not(missing(btbgtaug)).<br />

save outfile = merged.<br />

* Define <strong>the</strong> <strong>for</strong>mat <strong>for</strong> <strong>the</strong> variables used.<br />

value labels<br />

idgrader 1 "Seventh Grade " 2 "Eighth Grade" /<br />

btbgtaug 1 " 0 to 5 years " 2 " 6 to 10 years"<br />

3 "11 to 20 years " 4 "Over 20 years " /<br />

idcntry<br />

036 = "Australia " 040 = "Austria " 056 = "Belgium (Fl) "<br />

057 = "Belgium (Fr) " 100 = "Bulgaria " 124 = "Canada "<br />

170 = "Colombia " 196 = "Cyprus " 200 = "Czech Republic "<br />

208 = "Denmark " 826 = "Engl<strong>and</strong> " 250 = "France "<br />

280 = "Germany " 300 = "Greece " 344 = "Hong Kong "<br />

348 = "Hungary " 352 = "Icel<strong>and</strong> " 364 = "Iran, Islamic Rep. "<br />

372 = "Irel<strong>and</strong> " 376 = "Israel " 380 = "Italy "<br />

392 = "Japan " 410 = "Korea " 414 = "Kuwait "<br />

428 = "Latvia (LSS) " 440 = "Lithuania " 528 = "Ne<strong>the</strong>rl<strong>and</strong>s "<br />

554 = "New Zeal<strong>and</strong> " 578 = "Norway " 608 = "Philippines "<br />

620 = "Portugal " 642 = "Romania " 643 = "Russian Federation "<br />

827 = "Scotl<strong>and</strong> " 702 = "Singapore " 201 = "Slovak Republic "<br />

890 = "Slovenia " 717 = "South Africa " 724 = "Spain "<br />

752 = "Sweden " 756 = "Switzerl<strong>and</strong> " 764 = "Thail<strong>and</strong> "<br />

840 = "United States" .<br />

* Now use <strong>the</strong> macro to get <strong>the</strong> results.<br />

include "jack.sps".<br />

jack cvar = idcntry idgrader btbgtaug /<br />

dvar = bimatscr /<br />

njkr = 75 /<br />

jkz = jkzone /<br />

jki = jkindic /<br />

wgt = matwgt /<br />

sort cases by idcntry idgrader.<br />

temporary.<br />

select if idgrader = 2.<br />

report <strong>for</strong>mat=list automatic<br />

/ var = btbgtaug (label) matwgt mnx mnx_se pct pct_se<br />

/ break = idcntry idgrader.<br />

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

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

Saved successfully!

Ooh no, something went wrong!