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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Figure 9.13<br />

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

(EXAMPLE2.SAS)<br />

options nocenter;<br />

* Read <strong>the</strong> variables from <strong>the</strong> Ma<strong>the</strong>matics Teacher file <strong>and</strong> sort by merge variables;<br />

data teacher;<br />

set btmall1 (keep=idcntry idteach idlink btbgtaug);<br />

if btbgtaug >= 0 & btbgtaug 5 & btbgtaug 10 & btbgtaug 20 & btbgtaug 0 <strong>and</strong> nmiss(btbgtaug) = 0;<br />

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

proc <strong>for</strong>mat library=work;<br />

value grade 1 = "Seventh Grade " 2 = "Eighth Grade";<br />

value exper 1 = " 0 to 5 years " 2 = " 6 to 10 years"<br />

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

value country<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 JACK to get <strong>the</strong> results;<br />

%include "jack.sas";<br />

%jack (matwgt,jkzone,jkindic,75,idcntry idgrader btbgtaug,bimatscr,merged);<br />

proc print data=final noobs;<br />

by idcntry idgrader;<br />

where idgrader=2;<br />

var btbgtaug N matwgt mnx mnx_se pct pct_se;<br />

<strong>for</strong>mat idcntry country. btbgtaug exper. idgrader grade.;<br />

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

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

Saved successfully!

Ooh no, something went wrong!