# Surrogates-Replication-Code
**Repository Path**: owen560/Surrogates-Replication-Code
## Basic Information
- **Project Name**: Surrogates-Replication-Code
- **Description**: Code to replicate GAIN application in Athey, Chetty, Imbens and Kang (2019) using simulated employment data
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 3
- **Created**: 2023-01-16
- **Last Updated**: 2023-01-16
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
> Note: 可以依次点击绿色按钮「**Codes**」→「Download ZIP」将本仓库的所有文件下载到本地。也可以在 Stata 命令窗口执行如下命令来下载:
```stata
copy `"https://github.com/arlionn/Surrogates-Replication-Code/archive/refs/heads/master.zip"' Surrogates-Replication-Code.zip
```
## Replication Code for "The Surrogate Index: Combining Short-Term Proxies to Estimate Long-Term Treatment Effects More Rapidly and Precisely"
This code replicates the application to the GAIN job training program in
[Athey, Chetty, Imbens and Kang (2019)](https://opportunityinsights.org/wp-content/uploads/2019/11/surrogate_paper.pdf "Full Paper"), using a simulated dataset of employment outcomes.
The code can be run directly from **_Surrogates Metafile.do_** by setting the global ${surrogates} to point to this repository.
Alternatively, each file in the folder **_Code_** can be run individually.
The main .do file is **_Estimate treatment effects (experimental, surrogate index, single surrogate, naive).do_**, which is contained in **_Code/Compute Estimates_**.
When the files are run individually, this file should be run first.
The other .do files use output from this file to produce figures, tables and scalars that appear in the text.
These files can be run in any order.
The data on the GAIN program are from Riverside, CA are from Hotz, Imbens and Klerman (2006).
Although the data themselves are not publicly available, a simulated version of the data is saved in the folder **_Data (Raw)_**.
The simulation is intended to approximate the main results in the paper, and demonstrate the method used.
The file **_Codebook for GAIN Data.pdf_**, also in **_Data (Raw)_**, contains further background and variable names.

> Stata连享会 [主页](https://www.lianxh.cn/news/46917f1076104.html) || [视频](http://lianxh.duanshu.com) || [推文](https://www.lianxh.cn/news/d4d5cd7220bc7.html) || [知乎](https://www.zhihu.com/people/arlionn/) || [Bilibili 站](https://space.bilibili.com/546535876)

## 1. 连享会课程
> **免费公开课:**
- [直击面板数据模型](https://lianxh.duanshu.com/#/brief/course/7d1d3266e07d424dbeb3926170835b38) - 连玉君,时长:1小时40分钟,[课程主页](https://gitee.com/arlionn/PanelData),[B 站版](https://www.bilibili.com/video/BV1oU4y187qY)
- [Stata 33 讲](https://lianxh.duanshu.com/#/brief/course/b22b17ee02c24015ae759478697df2a0) - 连玉君, 每讲 15 分钟. [B 站版](https://space.bilibili.com/546535876/channel/detail?cid=160748)
- [Stata 小白的取经之路](https://lianxh.duanshu.com/#/brief/course/137d1b7c7c0045e682d3cf0cb2711530) - 龙志能,时长:2 小时,[课程主页](https://gitee.com/arlionn/StataBin)
- 部分直播课 [课程资料下载](https://gitee.com/arlionn/Live) (PPT,dofiles等)
> ### ⛳ [课程主页](https://www.lianxh.cn/news/46917f1076104.html)
[](https://www.lianxh.cn/news/46917f1076104.html)
[](https://www.lianxh.cn/news/46917f1076104.html)
[](https://www.lianxh.cn/news/46917f1076104.html)
> ### ⛳ [课程主页](https://www.lianxh.cn/news/46917f1076104.html)

## 2. 资源分享
### 视频公开课
- [连享会码云:100多个精选计量项目](https://www.lianxh.cn/news/944a69d75cec9.html) | [新浪视频](https://weibo.com/tv/show/1034:4479228373303338)
- [五分钟 Markdown / Markdown 幻灯片](https://gitee.com/arlionn/md) | [新浪视频](https://weibo.com/tv/show/1034:4484204327796746)
- [连老师给你的-听课建议](https://www.lianxh.cn/news/69706e871c9ad.html)
- [直击面板数据模型](http://lianxh-pc.duanshu.com/course/detail/7d1d3266e07d424dbeb3926170835b38) - 连玉君,时长:1小时40分钟,[B 站版](https://www.bilibili.com/video/BV1oU4y187qY)
- [Stata 33 讲](http://lianxh-pc.duanshu.com/course/detail/b22b17ee02c24015ae759478697df2a0) - 连玉君, 每讲 15 分钟. [课程主页](https://gitee.com/arlionn/stata101),[课件](https://gitee.com/arlionn/stata101),[B 站版](https://space.bilibili.com/546535876/channel/detail?cid=160748)
- [Stata小白的取经之路](https://gitee.com/arlionn/StataBin),龙志能,上海财经大学,[去听课](https://lianxh.duanshu.com/#/brief/course/137d1b7c7c0045e682d3cf0cb2711530)
### Stata
- [连享会推文](https://www.lianxh.cn) | [直播视频](http://lianxh.duanshu.com)
- **计量专题课程**: [Stata暑期班/寒假班](https://gitee.com/lianxh/text) | [专题课程](https://gitee.com/arlionn/Course)
- Stata专栏:[最新推文](https://www.lianxh.cn) | [知乎](https://www.zhihu.com/people/arlionn/) | [CSDN](https://blog.csdn.net/arlionn) | [Bilibili 站](https://space.bilibili.com/546535876)
- Books and Journal: [计量Books](https://quqi.gblhgk.com/s/880197/hmpmu2ylAcvHnXwY) | [SJ-PDF](https://quqi.gblhgk.com/s/880197/eipgoUi6Gd1FDZRu) | [Stata Journal-在线浏览](https://www.lianxh.cn/news/12ffe67d8d8fb.html)
- Stata Guys:[Ben Jann](http://www.soz.unibe.ch/about_us/personen/prof_dr_jann_ben/index_eng.html)
### Data
- [CSMAR-国泰安](http://www.gtarsc.com/#/datacenter/singletable) | [Wind-万德](https://www.wind.com.cn/Default.html) | [Resset-锐思](http://www.resset.cn/databases)
- [常用数据库](https://www.lianxh.cn/news/0b65fd5165c2c.html)
- [人文社科开放数据库](https://www.lianxh.cn/news/6f06c914acde8.html)
- [徐现祥教授-IRE-官员交流、方言等](https://www.lianxh.cn/news/8c9f81a5f19ee.html)
- [知乎-Data](https://www.zhihu.com/question/20179699/answer/681756635)
### Papers - 学术论文复现
- [论文重现网站](https://www.lianxh.cn/news/e87e5976686d5.html)
- [Google学术](https://ac.scmor.com/) | [统一入口:虫部落学术搜索](http://scholar.chongbuluo.com/) | [微软学术](https://academic.microsoft.com/home)
- [iData - 期刊论文下载](https://www.cn-ki.net/)
- [ CNKI ](http://scholar.cnki.net/) | [百度学术](http://xueshu.baidu.com/) | [Google学术](https://scholar.glgoo.org/) | [Sci-hub ](http://www.sci-hub.cc/), [2](http://sci-hub.ac/), [3](http://sci-hub.bz/), [4](http://sci-hub.ac/)
- Stata论文重现: [Harvard dataverse][harvd] | [JFE][jfe] | [github][git1] | [Yahoo-github][yahoogit]
- 学者主页(提供了诸多论文的原始数据和 dofiles):[Angrist][Ang1] || [Daron Acemoglu][acem] || [Ross Levine][ross] || [Esther Duflo][Duflo] || [Imbens](https://scholar.harvard.edu/imbens/software) || [Raj Chetty](http://www.rajchetty.com/)
[harvd]:https://dataverse.harvard.edu/dataverse
[jfe]:http://jfe.rochester.edu/data.htm
[Ang1]:http://economics.mit.edu/faculty/angrist/data1/data
[acem]:http://economics.mit.edu/faculty/acemoglu/data
[ross]:http://faculty.haas.berkeley.edu/ross_levine/papers.htm
[duflo]:http://economics.mit.edu/faculty/eduflo/papers
[git1]:https://github.com/search?utf8=%E2%9C%93&q=stata&type=
[yahoogit]:https://search.yahoo.com/search;_ylt=AwrBT8di2LBZqyEAuG9XNyoA;_ylc=X1MDMjc2NjY3OQRfcgMyBGZyA3lmcC10LTQ3MwRncHJpZAMEbl9yc2x0AzAEbl9zdWdnAzAEb3JpZ2luA3NlYXJjaC55YWhvby5jb20EcG9zAzAEcHFzdHIDBHBxc3RybAMwBHFzdHJsAzE0BHF1ZXJ5A3N0YXRhJTIwZ2l0aHViBHRfc3RtcAMxNTA0NzYxODcz?p=stata+github&fr2=sb-top&fr=yfp-t-473&fp=1
---
>#### 关于我们
- **Stata连享会** 由中山大学连玉君老师团队创办,定期分享实证分析经验。[直播间](http://lianxh.duanshu.com) 有很多视频课程,可以随时观看。
- [连享会-主页](https://www.lianxh.cn) 和 [知乎专栏](https://www.zhihu.com/people/arlionn/),500+ 推文,实证分析不再抓狂;[Bilibili 站](https://space.bilibili.com/546535876) 有视频大餐。
> ⛳ **`lianxh` 命令发布了:**
> 随时搜索连享会推文、Stata 资源,安装命令如下:
> `. ssc install lianxh`
> 使用详情参见帮助文件 (有惊喜):
> `. help lianxh`
