-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcmto_metafile.do
More file actions
327 lines (222 loc) · 12.5 KB
/
cmto_metafile.do
File metadata and controls
327 lines (222 loc) · 12.5 KB
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
/*******************************************************************************
METAFILE FOR CMTO PHASE 1 PAPER
********************************************************************************
This file runs all the figures and tables for
Bergman, P., Chetty, R., DeLuca, S., Hendren, N., Katz, L. F., & Palmer, C. (2020)
Note: due to privacy restrictions, accompanying data is not shared.
*******************************************************************************/
* cmto file paths
global code "${github}/cmto"
global cmto "${dropbox}/outside/cmto"
global cmto_der "${cmto}/data/derived"
global crosswalks "${cmto}/data/crosswalks"
global phase1_der "${cmto}/data/derived/baseline_pha_dec2019"
global mis_clean "${cmto}/data/derived/MIS_dec2019"
global tiers "${cmto}/data/raw/tiers"
global outpath "${cmto}/figs"
global tabs "${cmto}/tabs"
global scalars "${cmto}/scalars"
global map_inputs "${cmto}/figs/map_inputs"
global manual_edits "${cmto}/figs/paper/manual_edits"
* Opportunity Atlas data file paths
global fg "${dropbox}/outside/finer_geo"
global lat_lon "${dropbox}/outside/finer_geo/data/raw/covariates/geovar"
global census "${dropbox}/outside/finer_geo/data/raw/census/data_for_paper"
global forecasts "${dropbox}/outside/finer_geo/data/derived/forecasts/seattle"
global fg_raw "${dropbox}/outside/finer_geo/data/raw"
global fg_der "${dropbox}/outside/finer_geo/data/derived"
global fg_covar "${dropbox}/outside/finer_geo/data/derived/covariates"
* set the version of the figures (paper or slides)
global version paper
*set the file type (png, wmf, or pdf)
global img pdf
*set folder name for the output
global figs "${outpath}/${version}/${img}"
* set scheme, font, and title size
if "${version}" == "slides" {
set scheme leap_slides //opp_insights_policy leap_slides
graph set window fontface default
global title "title(" ", size(vhuge))"
}
else if "${version}" == "paper" {
set scheme leap_slides
graph set window fontface default
global title "title("")"
}
/********************************************************************************
* Tables
********************************************************************************/
* 1. Summary Statistics
* ------------------------------------------------------------------------------
*set: local whichtable to "fullbalance" inside do-file
if "${version}" == "paper" include "${code}/tabs/baseline_balance.do"
if "${version}" == "slides" include "${code}/tabs/baseline_balance_abridged_slides.do"
* 2. Heterogeneous Treatment Effects
* ------------------------------------------------------------------------------
include "${code}/tab_heterogeneous_treatment_effects.do"
* 3. Costs
* ------------------------------------------------------------------------------
*Refer to Appendix B in the paper.
* 4. DD Hist Reforms
* ------------------------------------------------------------------------------
include "${code}/tabs/tab_DD_KCHA_SHA_reforms.do"
/********************************************************************************
* Appendix Tables
********************************************************************************/
* App Table 1. Cost Comparisons
* ------------------------------------------------------------------------------
*From other papers + Our cost table (Table 3).
* App Table 2. Qualitative Study Sampling and Response Rates
* ------------------------------------------------------------------------------
*From Stefanie DeLuca's team.
* App Table 3. Qualitative Study Sample vs Rest of Sample
* ------------------------------------------------------------------------------
*set: local whichtable to "fullbalancequal" inside do-file
include "${code}/tabs/baseline_balance.do"
* App Table 4. Treatment vs Control Among Qualitative Sample
* ------------------------------------------------------------------------------
*set: local whichtable to "compquanttoqual" inside do-file
include "${code}/tabs/baseline_balance.do"
* App Table 5. Lifetime Earnings Impact
* ------------------------------------------------------------------------------
include "${code}/tabs/lifetime_earnings_impact.do"
* App Table 6. Lease-up Heterogeneity
* ------------------------------------------------------------------------------
*Already produced by: include "${code}/tabs/tab_heterogeneous_treatment_effects.do"
* App Table 7. Treatment Effects on Neighborhood and Housing Unit Characteristics
* ------------------------------------------------------------------------------
include "${code}/tabs/table_treatment_effects_house_characteristics_uc.do"
* App Table 8. Neighborhood Characteristics of High vs. Low Opportunity Areas
* ------------------------------------------------------------------------------
include "${code}/tabs/table_nbhd_characteristics_high_low_opp.do"
* App Table 9. Intervention Dosage: Treated Households' Usage of CMTO Services
* ------------------------------------------------------------------------------
*Panels A, B, and C:
include "${code}/tabs/service_usage_short.do"
*Panel D:
include "${code}/tabs/corr_services.do"
* App Table 10. Variable Sources
* ------------------------------------------------------------------------------
*Manually in excel file.
********************************************************************************
* Set-Up Figure Scalarout File
********************************************************************************
* set file name
clear
clear matrix
clear mata
local file_name cmto_figure_scalarout_dec2019
set maxvar 100000
* create spacing for headers
local header "."
local scalar_mode "on"
* replace old scalarout file with a new one
cap erase "${scalars}/`file_name'.csv"
********************************************************************************
* Main Figures
********************************************************************************
* create scalarout header
scalarout using "${scalars}/`file_name'.csv", id("Main Figures") num(`header')
* 1. Opportunity Bargains in Seattle
* ------------------------------------------------------------------------------
* A. Map Top Voucher 25 Most Common Vouchers
include "${code}/figs/map_lat_lon_top25_historical_voucher_tracts.do"
*+ Manually prepared in ArcGIS + Screenshot + PPP manual edits
* ArcGIs Pro file: "${dropbox}\outside\cmto\code\arcgis\cmto_top25_locations_vouchers_historical"
* Manual edits PPP: "${dropbox}\outside\cmto\figs\Figure Manual Edits dec 2019.pptx"
* B. Scatter KFR p25 on Rent (Opp Bargain)
include "${code}/figs/scatter_kfr_rent_oppbarg.do"
* 2. Comparing Opp Measures (Atlas v. Kirwan)
* ------------------------------------------------------------------------------
* A. CMTO Opportunity Areas
*Manually prepared in ArcGIS + Screenshot + PPP manual edits:
* ArcGIs Pro file: "${dropbox}\outside\cmto\code\arcgis\cmto_destinations_pins_dec2019_acrgis_pro"
* Manual edits PPP: "${dropbox}\outside\cmto\figs\Figure Manual Edits dec 2019.pptx"
*B. Kirwin and KFR
include "${code}/figs/map_kfr_kirwan_forecast.do"
*+ Manually prepared in ArcGIS + Screenshot + PPP manual edits:
* ArcGIs Pro file: "${dropbox}\outside\cmto\code\arcgis\cmto_top25_locations_vouchers_historical"
* Manual edits PPP: "${dropbox}\outside\cmto\figs\Figure Manual Edits dec 2019.pptx"
* 3. Treatment intervention and Family Experience Process Flow
* ------------------------------------------------------------------------------
* A and B.:
* Mostly text and images from Manual edits PPP.
* Manual edits PPP: "${dropbox}\outside\cmto\figs\Figure Manual Edits dec 2019.pptx"
* Stats from cost table (Table 3).
* 4. CMTO Treatment Effects
* ------------------------------------------------------------------------------
*All panels:
include "${code}/figs/bar_mto_effects.do"
* 5. Map of Destination Tracts for Voucher Recepients
* ------------------------------------------------------------------------------
include "${code}/figs/map_lat_lon_orig_dest_by_household.do"
*+ Manually prepared in ArcGIS + Screenshot + PPP manual edits:
* ArcGIs Pro file: "${dropbox}\outside\cmto\code\arcgis\cmto_destinations_pins_dec2019_acrgis_pro"
* Manual edits PPP: "${dropbox}\outside\cmto\figs\Figure Manual Edits dec 2019.pptx"
* 6. Distribution of Tract-Level Upward Mobility in Destinations
* ------------------------------------------------------------------------------
include "${code}/figs/kdensity_destination_kfr.do"
* 7. Heterogeneity in Treatment Effects
* ------------------------------------------------------------------------------
* A and B.:
include "${code}/figs/bar_mto_hetergeneous_effects.do"
* 8. Treatment Effects on Neighborhood and Unit Characteristics
* ------------------------------------------------------------------------------
*All panels:
*Already produced by: "${code}/figs/bar_mto_effects.do"
* 9. Persistence of Treatment Effects on Neighborhood Choice
* ------------------------------------------------------------------------------
* A. :
include "${code}/figs/bar_4bars_mto_effects_persistence.do"
* B. :
*Already produced by: "${code}/figs/bar_mto_effects.do"
* 10. Treatment Effects on Post-Move Neighborhood Satisfaction
* ------------------------------------------------------------------------------
*Already produced by: "${code}/figs/bar_mto_effects.do"
* 11. Neighborhood Satisfaction in Low vs. High-Opportunity Areas
* ------------------------------------------------------------------------------
include "${code}/figs/bar_survey_satisfac_cmto_treat_descriptive.do"
* 12. Distribution of Preferences (CDF) for High Opp Neighborhoods
* ------------------------------------------------------------------------------
include "${code}/figs/wtp_cdf_treat_plots.do"
* 11. Effects of Vouhcer Payment Standard Changes
* ------------------------------------------------------------------------------
* A. Effect of KCHA 5-Tier Reform on Share Moving to Opp:
include "${code}/figs/connected_diff_in_diff_KCHA_2016.do"
* B. Effect of SHA Family Access Supplement on Share Moving to Opp:
include "${code}/figs/connected_diff_in_diff_FAS_and_Pilot_SHA_2018.do"
********************************************************************************
* Appendix Figures
********************************************************************************
* create scalarout header:
scalarout using "${scalars}/`file_name'.csv", id("Appendix Figures") num(`header')
* App Fig 1. Hockey Sticks Around the World (Manual Edit)
* ------------------------------------------------------------------------------
* Manual edits PPP: "${dropbox}\outside\cmto\figs\Figure Manual Edits dec 2019.pptx"
* App Fig 2. Preliminary and Final Versions of Opportunity Atlas
* ------------------------------------------------------------------------------
include "${code}/figs/map_kfr_kirwan_forecast.do"
*+ Manually prepared in ArcGIS + Screenshot + PPP manual edits:
* ArcGIs Pro file: "${dropbox}\outside\cmto\code\arcgis\cmto_top25_locations_vouchers_historical"
* Manual edits PPP: "${dropbox}\outside\cmto\figs\Figure Manual Edits dec 2019.pptx"
*App Fig 3. Map of Origin Tracts for Voucher Recepients
* ------------------------------------------------------------------------------
include "${code}/figs/map_lat_lon_orig_dest_by_household.do"
*+ Manually prepared in ArcGIS + Screenshot + PPP manual edits:
* ArcGIs Pro file: "${dropbox}\outside\cmto\code\arcgis\cmto_destinations_pins_dec2019_acrgis_pro"
* Manual edits PPP: "${dropbox}\outside\cmto\figs\Figure Manual Edits dec 2019.pptx"
*App Fig 4. Predicted Treatment Effects on Other Long-Term Outcomes
* ------------------------------------------------------------------------------
*Already produced by: "${code}/figs/bar_mto_effects.do"
*App Fig 5. Unconditional Short-Run Persistence of Treatment Effects on Neighborhood Choice
* ------------------------------------------------------------------------------
*Already produced by: "${code}/figs/bar_4bars_mto_effects_persistence.do"
*App Fig 6. Post-Move Survey All Answers
* ------------------------------------------------------------------------------
include "${code}/figs/bar_survey_satisfaction_effects_5bars.do"
*App Fig 7. King County Housing Authority Payment Zones
* ------------------------------------------------------------------------------
include "${code}/figs/map_kcha_tier_reform_prepare_data.do"
*+ Manually prepared in ArcGIS + Screenshot + PPP manual edits:
* ArcGIs Pro file: "${dropbox}\outside\cmto\code\arcgis\maps_difference_tiers.mxd"
* Manual edits PPP: "${dropbox}\outside\cmto\figs\Figure Manual Edits dec 2019.pptx"