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 />

9.3 Computing JRR Replicate Weights <strong>and</strong> Sampling Variance Using<br />

SPSS <strong>and</strong> SAS<br />

In this section example SAS <strong>and</strong> SPSS code that may be used to compute <strong>the</strong> JRR st<strong>and</strong>ard<br />

errors <strong>for</strong> means <strong>and</strong> percentages is described. This code is provided in <strong>the</strong> <strong>for</strong>m of SAS <strong>and</strong><br />

SPSS macros. These macros compute <strong>the</strong> percentage of students within a subgroup defined<br />

by a set of classification variables, <strong>the</strong> JRR st<strong>and</strong>ard error of this percentage, <strong>the</strong> mean <strong>for</strong> <strong>the</strong><br />

group on a variable of choice, <strong>and</strong> <strong>the</strong> JRR st<strong>and</strong>ard error of that mean.<br />

Each of <strong>the</strong>se macros operate as follows:<br />

1. Computes a set of 75 replicate weights <strong>for</strong> <strong>the</strong> record using <strong>the</strong> procedure described in <strong>the</strong><br />

previous chapter.<br />

2. Aggregates or summarizes <strong>the</strong> file computing <strong>the</strong> sum of <strong>the</strong> weights <strong>for</strong> each category,<br />

<strong>the</strong> sum of <strong>the</strong> weights overall, <strong>and</strong> <strong>the</strong> sum of a weighted analysis variable.<br />

3. Computes <strong>the</strong> percent of people within each group, <strong>the</strong>ir mean on <strong>the</strong> analysis variable,<br />

<strong>and</strong> <strong>the</strong>ir corresponding st<strong>and</strong>ard errors. In SPSS <strong>the</strong> resulting working file contains <strong>the</strong><br />

corresponding statistics. In SAS <strong>the</strong> file FINAL contains <strong>the</strong> corresponding statistics.<br />

When using each of <strong>the</strong>se macros, <strong>the</strong> user needs to specify a set of classification variables,<br />

one analysis variable, <strong>the</strong> number of replicate weights to be generated, <strong>the</strong> variable that<br />

contains <strong>the</strong> sampling in<strong>for</strong>mation such as JKZONE <strong>and</strong> JKINDIC, <strong>and</strong> <strong>the</strong> sampling weight<br />

that is to be used <strong>for</strong> <strong>the</strong> analysis. When using <strong>the</strong> SAS macro <strong>the</strong> user will also need to<br />

specify <strong>the</strong> data file that contains <strong>the</strong> data that is to be processed. In SPSS <strong>the</strong> macro uses <strong>the</strong><br />

current working file, which is <strong>the</strong> file that was last read.<br />

9.3.1 SAS Macro <strong>for</strong> Computing Mean <strong>and</strong> Percents with<br />

Corresponding St<strong>and</strong>ard Errors (JACK.SAS)<br />

The CD containing <strong>the</strong> <strong>TIMSS</strong> <strong>International</strong> <strong>Database</strong> contains a SAS macro program called<br />

JACK.SAS. This macro can be used to compute weighted percents <strong>and</strong> means within<br />

categories defined by variables specified by <strong>the</strong> user, <strong>and</strong> <strong>the</strong> JRR st<strong>and</strong>ard error estimate <strong>for</strong><br />

<strong>the</strong>se statistics. The control code <strong>for</strong> <strong>the</strong> macro JACK.SAS is presented in Figure 9.5.<br />

9 - 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!