Office memorandum


Stata Code Used to Randomize the Allocation of Benefits



Download 0.66 Mb.
Page10/13
Date29.01.2017
Size0.66 Mb.
#11866
1   ...   5   6   7   8   9   10   11   12   13

4. Stata Code Used to Randomize the Allocation of Benefits

*===============================================

Randomize to get experimental sample

================================================;


# delimit;
use "$out\4 estados.dta", clear;

count;


set seed #;

sample #, count;

save "$out\m 4 estados.dta", replace;
*===============================================

Randomize treatment and control status across

schools in the sample
1 =treatment

2 =control

================================================;

set seed #;

g random=uniform();

sort random;

g group=group(2);

sort clavecct;


tab group;

g treatment=0;

replace treatment=1 if group==1;

g control=0;

replace control=1 if group==2;

tab treatment control;


# delimit cr

Attachment Table 4.1: Mean t-tests for Treatment and Control Schools







Treatment

Control

Means

t-test

Variable label

Variable description

N

Mean

S.D.

N

Mean

S.D.




subtot1_tot2004

number of students in grade 1, cycle 2004

124

14.7097

14.4722

124

13.8629

12.3297

-0.4960

subtot2_tot2004

number of students in grade 2, cycle 2004

124

14.7258

14.4972

124

14.5081

13.5602

-0.1221

subtot3_tot2004

number of students in grade 3, cycle 2004

124

14.4274

14.0436

124

14.9194

12.1646

0.2948

subtot4_tot2004

number of students in grade 4, cycle 2004

124

14.0161

15.5866

124

14.3629

12.6846

0.1922

subtot5_tot2004

number of students in grade 5, cycle 2004

124

12.3629

14.0101

124

13.0081

11.8997

0.3908

subtot6_tot2004

number of students in grade 6, cycle 2004

124

11.3065

12.4104

124

11.9113

11.8692

0.3922

subtot1_tot2005

number of students in grade 1, cycle 2005

125

14.3280

14.1546

125

14.3120

13.1422

-0.0093

subtot2_tot2005

number of students in grade 2, cycle 2005

125

14.1600

14.4966

125

13.6640

12.0737

-0.2939

subtot3_tot2005

number of students in grade 3, cycle 2005

125

13.8080

13.6811

125

14.4400

13.0739

0.3734

subtot4_tot2005

number of students in grade 4, cycle 2005

125

13.3120

13.8310

125

14.0160

11.8396

0.4323

subtot5_tot2005

number of students in grade 5, cycle 2005

125

12.7680

13.8174

125

13.7120

12.3646

0.5692

subtot6_tot2005

number of students in grade 6, cycle 2005

125

11.2240

13.1596

125

11.9120

11.0242

0.4481

subtot1_tot2006

number of students in grade 1, cycle 2006

125

14.7360

14.6904

125

15.0960

14.1623

0.1972

subtot2_tot2006

number of students in grade 2, cycle 2006

125

13.6240

13.4300

125

13.8960

13.1651

0.1617

subtot3_tot2006

number of students in grade 3, cycle 2006

125

13.7200

13.7809

125

13.4400

12.2055

-0.1701

subtot4_tot2006

number of students in grade 4, cycle 2006

125

13.1440

13.0283

125

13.7360

12.6492

0.3645

subtot5_tot2006

number of students in grade 5, cycle 2006

125

12.1280

12.3895

125

13.0160

10.9728

0.5999

subtot6_tot2006

number of students in grade 6, cycle 2006

125

11.8880

12.6403

125

12.6720

11.5624

0.5117

gpos12004

number of groups in grade 1 beginning of cycle 2004

124

1.0887

0.3828

124

1.0645

0.3311

-0.5323

gpos22004

number of groups in grade 2 beginning of cycle 2004

124

1.0887

0.4035

124

1.0806

0.3515

-0.1678

gpos32004

number of groups in grade 3 beginning of cycle 2004

124

1.1048

0.3996

124

1.0484

0.3085

-1.2452

gpos42004

number of groups in grade 4 beginning of cycle 2004

124

1.1210

0.4701

124

1.0887

0.3377

-0.6206

gpos52004

number of groups in grade 5 beginning of cycle 2004

124

1.0887

0.4035

124

1.0484

0.3339

-0.8574

gpos62004

number of groups in grade 6 beginning of cycle 2004

124

1.0403

0.3469

124

1.0403

0.3696

0.0000

gpos2004

number of groups, beginning of cycle 2004

124

6.5323

2.1992

124

6.3710

1.8631

-0.6231

gpos12005

number of groups in grade 1 beginning of cycle 2005

125

1.1040

0.3981

125

1.0720

0.3402

-0.6832

gpos22005

number of groups in grade 2 beginning of cycle 2005

125

1.1040

0.4178

125

1.0640

0.3044

-0.8651

gpos32005

number of groups in grade 3 beginning of cycle 2005

125

1.0800

0.4135

125

1.0880

0.3364

0.1678

gpos42005

number of groups in grade 4 beginning of cycle 2005

125

1.0800

0.3724

125

1.0560

0.2925

-0.5666

gpos52005

number of groups in grade 5 beginning of cycle 2005

125

1.0800

0.3935

125

1.0720

0.3156

-0.1773

gpos62005

number of groups in grade 6 beginning of cycle 2005

125

1.0400

0.4096

125

1.0400

0.3213

0.0000

gpos2005

number of groups, beginning of cycle 2005

125

6.4880

2.2166

125

6.3920

1.7501

-0.3800

gpos12006

number of groups in grade 1 beginning of cycle 2006

125

1.1120

0.4253

125

1.0880

0.3596

-0.4818

gpos22006

number of groups in grade 2 beginning of cycle 2006

125

1.1200

0.4508

125

1.0800

0.3935

-0.7474

gpos32006

number of groups in grade 3 beginning of cycle 2006

125

1.1040

0.4178

125

1.0640

0.3044

-0.8651

gpos42006

number of groups in grade 4 beginning of cycle 2006

125

1.0640

0.3298

125

1.0960

0.3899

0.7006

gpos52006

number of groups in grade 5 beginning of cycle 2006

125

1.0800

0.4135

125

1.0480

0.2494

-0.7409

gpos62006

number of groups in grade 6 beginning of cycle 2006

125

1.0720

0.3847

125

1.0800

0.3501

0.1719

gpos2006

number of groups, beginning of cycle 2006

125

6.5520

2.2269

125

6.4560

1.8987

-0.3668

Download 0.66 Mb.

Share with your friends:
1   ...   5   6   7   8   9   10   11   12   13




The database is protected by copyright ©ininet.org 2022
send message

    Main page