1 Star 1 Fork 0

Tiger-Leo/walfare analysis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
metafile.do 3.08 KB
一键复制 编辑 原始数据 按行查看 历史
Tiger-Leo 提交于 2021-07-14 22:33 . first commit
/***********************************************************************
METAFILE FOR WELFARE PAPER
************************************************************************
This file produces all estimates in Hendren & Sprung-Keyser (2019).
It requires not only this code repository but also a separate set of
files available at https://opportunityinsights.org/
************************************************************************
To get started two file paths must be set.
First, set the welfare_git filepath below to the top-folder of this code
repository.
Second, set the welfare_files filepath below to the top-folder of the
separate files folder.
************************************************************************
Required software packages:
- Stata
- Matlab, including Global Optimization Toolbox
Capture statements have been added to allow the code to run without
Matlab, in which case the estimation of and correction for publication
bias is omitted.
***********************************************************************/
global github = "C:/Users/nit518/Documents/GitHub/"
global welfare_git = "${github}/Welfare"
global welfare_files = ///
"C:/Users/nit518/Opportunity Insights Dropbox/Nicolaj Thor/Children"
net sj 5-4 dm88_1
capture net install dm88_1.pkg // program "NIT" requires "renvars" command
global welfare_seed 1280 // Massachusetts Avenue
*-----------------------------------------------------------------------
* 1 - Prepare causal estimates
*-----------------------------------------------------------------------
* 1a - prepare bootstrap draws of uncorrected causal estimates
do "${welfare_git}/wrapper/prepare_causal_estimates.do" ///
all_programs // programs to run
* 1b - estimate publication bias and correct causal estimates
do "${welfare_git}/wrapper/prepare_corrected_ests.do"
*-----------------------------------------------------------------------
* 2 - Estimate MVPFs and other statistics, bootstrapping
*-----------------------------------------------------------------------
do "${welfare_git}/wrapper/bootstrap_wrapper.do" ///
all_programs /// programs to run
all // modes to run
*-----------------------------------------------------------------------
* 3 - Compile estimates
*-----------------------------------------------------------------------
* 3a - Compile estimates with bootstrapped confidence intervals
do "${welfare_git}/wrapper/compile_results.do" ///
all_modes // modes to run on
* 3b - Compile point estimates where we don't have confidence intervals
cap do "${welfare_git}/wrapper/compile_pe.do" ///
"corrected_mode_1 corrected_mode_4" // modes to run
*-----------------------------------------------------------------------
* 4 - Estimate value of information experiments
*-----------------------------------------------------------------------
qui do "${welfare_git}/wrapper/value_info.do"
*-----------------------------------------------------------------------
* 5 - Produce figures
*-----------------------------------------------------------------------
do "${welfare_git}/figtab/figures_metafile.do"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Tiger-Leo/walfare-analysis.git
git@gitee.com:Tiger-Leo/walfare-analysis.git
Tiger-Leo
walfare-analysis
walfare analysis
master

搜索帮助