-
Notifications
You must be signed in to change notification settings - Fork 0
/
5002Interaction.do
360 lines (236 loc) · 10.1 KB
/
5002Interaction.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
*** do 5002Interaction
** Check extreme cases
** Interaction effects
global log "5002Interaction"
global logN "5002"
global dsold "4000Extract"
global graf ".emf"
capture log close
clear all
version 13
set matsize 800
set mem 400000k
set linesize 140
set more off
use "$dsold", clear
log using "$log", t replace
*** Models
local Ys "pellrates nonpellrates pellgap pellratio"
local mYs "pellgap pellratio"
local Xs "perfrat persoror greekyes"
local Select " Ndegsel Accept0712 Private"
global iSelect "i.Ndegsel c.Accept0712 Private"
local mSelect "m.Ndegsel Accept0712 Private"
local Controls "pellper0712 np_linc0813K Nmininst perWomen perBlkHis perSTEM lnendow0712K schsize0712K urbanicity4 Region"
global iControls "pellper0712 np_linc0813K Nmininst perWomen perBlkHis perSTEM c.lnendow0712K schsize0712K i.urbanicity4 i.Region"
*** Check 82% in perfrat, persoror, & greekyes
sort perfrat
sum perfrat persoror greekyes schsize0712K
graph twoway ///
(scatter perfrat persoror, msym(oh) ylab(-20(20)80, grid glcolor(gs14)) msiz(*1.1))
graph export Greekpercent.wmf, replace
format schsize0712K pellrates nonpellrates %9.4g
list unitid instnm perfrat persoror greekyes schsize0712K pellrates nonpellrates if perfrat>=60, clean noob
list unitid instnm perfrat persoror greekyes schsize0712K pellrates nonpellrates if perfrat<0, clean noob
note Anotes: (234207) Washington and Lee University has 82% for both ///
perfrat and persoror. This could be a wrong reporting and should be ///
removed from analyses. Other than this, the values look reasonable.
*** With and without (234207) Washington and Lee University from analysis
global X "perfrat"
** Table 03: Gap = (Non-Pell rates - Pell rates)
global Y "pellgap"
qui regress $Y $X $iSelect $iControls
estimates store Yes
qui regress $Y $X $iSelect $iControls if unitid~=234207
estimates store No
estimates table Yes No, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y)
** Table 04: non-Pell graduation rates
global Y "nonpellrates"
qui regress $Y $X $iSelect $iControls
estimates store Yes
qui regress $Y $X $iSelect $iControls if unitid~=234207
estimates store No
estimates table Yes No, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y)
** Table 05: Pell graduation rates
global Y "pellrates"
qui regress $Y $X $iSelect $iControls
estimates store Yes
qui regress $Y $X $iSelect $iControls if unitid~=234207
estimates store No
estimates table Yes No, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y)
*** Check 0% & 100% in graduation rates
sort pellrates nonpellrates
sum pellrates nonpellrates
graph twoway ///
(scatter pellrates nonpellrates, msym(oh) ylab(0(20)100, grid glcolor(gs14)) msiz(*1.1))
graph export Graduaterate.wmf, replace
list unitid instnm pellrates nonpellrates schsize0712K Private pellper0712 Nmininst urbanicity4 if pellrates>=98 | nonpellrates>=98, clean noob
nmlab pellper0712 Nmininst schsize0712K urbanicity4
list unitid instnm pellrates nonpellrates schsize0712K Private pellper0712 Nmininst urbanicity4 if pellrates<=0 | nonpellrates<=0, clean noob
*** Interactions
**1 % Greek and Greek house
sum perfrat persoror greekyes
corr perfrat persoror greekyes
graph twoway ///
(scatter pellrates nonpellrates if greekyes==0, msym(oh) ylab(0(20)100, grid glcolor(gs14)) msiz(*1.1) ///
title("1. No Greek House", size(medium) pos(11)) name(temp1, replace))
graph twoway ///
(scatter pellrates nonpellrates if greekyes==1, msym(oh) ylab(0(20)100, grid glcolor(gs14)) msiz(*1.1) ///
title("2. Greek House", size(medium) pos(11)) name(temp2, replace))
gr combine temp1 temp2, scheme(s1mono) ///
col(2) xsize(14) ysize(9) iscale(*.8) imargin(medsmall) graphregion(margin(l=5 r=5))
graph export Greekhouse.wmf, replace
** Table 03: Gap = (Non-Pell rates - Pell rates)
global Y "pellgap"
qui regress $Y c.$X
estimates store M1
qui regress $Y i.greekyes
estimates store M2
qui regress $Y c.$X i.greekyes
estimates store M3
qui regress $Y c.$X#ibn.greekyes
estimates store M4
qui regress $Y c.$X#ibn.greekyes $iSelect
estimates store M5
qui regress $Y c.$X#ibn.greekyes $iSelect $iControls
estimates store M6
estimates table M1 M2 M3 M4 M5 M6, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y)
** Table 04: non-Pell graduation rates
global Y "nonpellrates"
qui regress $Y c.$X
estimates store M1
qui regress $Y i.greekyes
estimates store M2
qui regress $Y c.$X i.greekyes
estimates store M3
qui regress $Y c.$X#ibn.greekyes
estimates store M4
qui regress $Y c.$X#ibn.greekyes $iSelect
estimates store M5
qui regress $Y c.$X#ibn.greekyes $iSelect $iControls
estimates store M6
estimates table M1 M2 M3 M4 M5 M6, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y)
** Table 05: Pell graduation rates
global Y "pellrates"
qui regress $Y c.$X
estimates store M1
qui regress $Y i.greekyes
estimates store M2
qui regress $Y c.$X i.greekyes
estimates store M3
qui regress $Y c.$X#ibn.greekyes
estimates store M4
qui regress $Y c.$X#ibn.greekyes $iSelect
estimates store M5
qui regress $Y c.$X#ibn.greekyes $iSelect $iControls
estimates store M6
estimates table M1 M2 M3 M4 M5 M6, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y)
**2 % Greek and acceptance rates
global iSelect "i.Ndegsel Private"
global iControls "pellper0712 np_linc0813K Nmininst perWomen perBlkHis perSTEM c.lnendow0712K schsize0712K i.urbanicity4 i.Region"
** Table 03: Gap = (Non-Pell rates - Pell rates)
global Y "pellgap"
qui regress $Y c.$X c.Accept0712
estimates store M1
qui regress $Y c.$X##c.Accept0712
estimates store M2
qui regress $Y c.$X##c.Accept0712 $iSelect
estimates store M3
qui regress $Y c.$X##c.Accept0712 $iSelect $iControls
estimates store M4
estimates table M1 M2 M3 M4, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y; % Greek and Acceptance rates)
** Table 04: non-Pell graduation rates
global Y "nonpellrates"
qui regress $Y c.$X c.Accept0712
estimates store M1
qui regress $Y c.$X##c.Accept0712
estimates store M2
qui regress $Y c.$X##c.Accept0712 $iSelect
estimates store M3
qui regress $Y c.$X##c.Accept0712 $iSelect $iControls
estimates store M4
estimates table M1 M2 M3 M4, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y; % Greek and Acceptance rates)
** Table 05: Pell graduation rates
global Y "pellrates"
qui regress $Y c.$X c.Accept0712
estimates store M1
qui regress $Y c.$X##c.Accept0712
estimates store M2
qui regress $Y c.$X##c.Accept0712 $iSelect
estimates store M3
qui regress $Y c.$X##c.Accept0712 $iSelect $iControls
estimates store M4
estimates table M1 M2 M3 M4, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y; % Greek and Acceptance rates)
**3 % Greek and endowment
global iSelect "i.Ndegsel c.Accept0712 Private"
global iControls "pellper0712 np_linc0813K Nmininst perWomen perBlkHis perSTEM schsize0712K i.urbanicity4 i.Region"
** Table 03: Gap = (Non-Pell rates - Pell rates)
global Y "pellgap"
qui regress $Y c.$X c.lnendow0712K
estimates store M1
qui regress $Y c.$X##c.lnendow0712K
estimates store M2
qui regress $Y c.$X##c.lnendow0712K $iSelect
estimates store M3
qui regress $Y c.$X##c.lnendow0712K $iSelect $iControls
estimates store M4
estimates table M1 M2 M3 M4, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y; % Greek and endowment)
** Table 04: non-Pell graduation rates
global Y "nonpellrates"
qui regress $Y c.$X c.lnendow0712K
estimates store M1
qui regress $Y c.$X##c.lnendow0712K
estimates store M2
qui regress $Y c.$X##c.lnendow0712K $iSelect
estimates store M3
qui regress $Y c.$X##c.lnendow0712K $iSelect $iControls
estimates store M4
estimates table M1 M2 M3 M4, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y; % Greek and endowment)
** Table 05: Pell graduation rates
global Y "pellrates"
qui regress $Y c.$X c.lnendow0712K
estimates store M1
qui regress $Y c.$X##c.lnendow0712K
estimates store M2
qui regress $Y c.$X##c.lnendow0712K $iSelect
estimates store M3
qui regress $Y c.$X##c.lnendow0712K $iSelect $iControls
estimates store M4
estimates table M1 M2 M3 M4, b(%9.3f) star(.001 .01 .05) stats(N r2) title($Y; % Greek and endowment)
**4 % Greek and selectivity
tab Ndegsel, m
global iControls "c.Accept0712 Private pellper0712 np_linc0813K Nmininst perWomen perBlkHis perSTEM c.lnendow0712K schsize0712K i.urbanicity4 i.Region"
** Table 03: Gap = (Non-Pell rates - Pell rates)
global Y "pellgap"
qui regress $Y c.$X
estimates store M1
qui regress $Y c.$X i.Ndegsel
estimates store M2
qui regress $Y c.$X#ibn.Ndegsel
estimates store M3
qui regress $Y c.$X#ibn.Ndegsel $iControls
estimates store M4
estimates table M1 M2 M3 M4, b(%9.3f) star(.001 .01 .05) stats(N r2) title(Gap = (Non-Pell rates - Pell rates))
** Table 04: non-Pell graduation rates
global Y "nonpellrates"
qui regress $Y c.$X
estimates store M1
qui regress $Y c.$X i.Ndegsel
estimates store M2
qui regress $Y c.$X#ibn.Ndegsel
estimates store M3
qui regress $Y c.$X#ibn.Ndegsel $iControls
estimates store M4
estimates table M1 M2 M3 M4, b(%9.3f) star(.001 .01 .05) stats(N r2) title(non-Pell graduation rates)
** Table 05: Pell graduation rates
global Y "pellrates"
qui regress $Y c.$X
estimates store M1
qui regress $Y c.$X i.Ndegsel
estimates store M2
qui regress $Y c.$X#ibn.Ndegsel
estimates store M3
qui regress $Y c.$X#ibn.Ndegsel $iControls
estimates store M4
estimates table M1 M2 M3 M4, b(%9.3f) star(.001 .01 .05) stats(N r2) title(Pell graduation rates)
log close