-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.do
52 lines (40 loc) · 1.37 KB
/
main.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
********************************************************************************
* PURPOSE:
* - Trigger all of the available do-file
* - This should be put in the entrypoint.sh so it can be reusable
********************************************************************************
clear
// 1. Basic do-file
do do/basic.do
// 2. Regression table
do do/regression_latex.do
// 3. Data visualization
do do/visualization.do
// 4, 5, ..., N -> depends on user's needs
********************************************************************************
* PURPOSE: reproduce results from an open source paper
* https://github.com/adviksh/when-guidance-changes
********************************************************************************
clear
// list packages that we may want to install related
local packages = "unique reghdfe ritest estout ivreghdfe ftools ivreg2 ranktest"
foreach i of local packages {
capture which `i'
if _rc != 0 {
display _rc
ssc install `i', replace
}
}
// clone repo
// not all replication packages requires python hence use it on main.do
// put it into dockerfile will only waste resources for users who don't need it
shell apt-get install python3 -y
shell apt-get install git -y
shell git clone https://github.com/adviksh/when-guidance-changes.git
cd when-guidance-changes
cd stata
shell mkdir -p out
shell mkdir -p log
do code/make_shifty.do
clear
exit