| doall.do:10 | ||||
| → | table3.do | ↘ | ||
|
table3.log |
[3] | |||
|
table3_out.csv |
[7] | |||
|
set_directory_macros.do |
[15] | |||
|
t3_data_setup.do |
[16] |
outdata statelist |
||
|
t3_ols.do |
[17] |
bsout main_data pairs_bs_out to_be_sampled |
||
|
t3_ar1.do |
[18] |
bsout tobsample tomerge |
||
|
CR23_IK_CSS.do |
[19] | |||
|
t34_programs.do |
[20] | |||
table3.do open
file:script:do
| # | content log log |
|---|---|
| 1 [+] | #delimit |
| 2 [+] | cap log close |
| 3 [+] | log using table3.log , |
| 4 [+] | set more off |
| 6 [+] | cap log close t3out |
| 7 [+] | qui log using table3_out.csv , |
| 8 [+] | qui log off t3out |
| 10 [+] | clear |
| 11 [+] | clear mata |
| 12 [+] | set seed 10101 |
| 13 [+] | set matsize 10000 |
| 15 [+] | run set_directory_macros |
| 16 [+] | run t3_data_setup |
| 17 [+] | run t3_ols |
| 18 [+] | run t3_ar1 |
| 19 [+] | run CR23_IK_CSS |
| 20 [+] | run t34_programs |
| 22 [+] | cap prog drop runme |
| 23 [+] | prog def runme |
| 25 [+] | local bsreps = 999 |
| 26 [+] | local beta_hypothesis = 0 |
| 28 [+] | tempfile main_data |
/* get the dataset ready for estimation */ |
|
| 31 [+] | qui t3_setup , |
/* the t3_ols code will partial out state and year fixed effects */ |
|
| 36 [+] | t3_ols , |
/* the t3_ols code will partial out state and year fixed effects */ |
|
| 41 [+] | t3_ols , |
/* the t3_ar1 code does not partial out any fixed effects, so need to directly pass these in as regressors */ |
|
| 46 [+] | t3_ar1 , |
| 50 [+] | end |
| 52 [+] | runme |
| 54 [+] | qui log close t3out |
| 55 [+] | log close _all |
#delimit ;
cap log close ;
log using table3.log, text replace ;
set more off ;
cap log close t3out ;
qui log using table3_out.csv , text replace name(t3out) ;
qui log off t3out ;
clear ;
clear mata ;
set seed 10101 ;
set matsize 10000 ;
run set_directory_macros ;
run t3_data_setup ;
run t3_ols ;
run t3_ar1 ;
run CR23_IK_CSS ;
run t34_programs ;
cap prog drop runme ;
prog def runme ;
local bsreps = 999 ;
local beta_hypothesis = 0 ;
tempfile main_data ;
/* get the dataset ready for estimation */
qui t3_setup , keylhs("lnwage_sy") sourcedata("${madedat}/CPS_panel") outdata(`main_data') ;
/* estimate "model 1" */
/* the t3_ols code will partial out state and year fixed effects */
t3_ols , bsreps(`bsreps') sourcedata(`main_data') lhs(lnwage_sy) rhs(policy) keyrhs(policy) ;
/* estimate "model 2" */
/* the t3_ols code will partial out state and year fixed effects */
t3_ols , bsreps(`bsreps') sourcedata(`main_data') lhs(lnwage_sy) rhs(policy) keyrhs(policy) yearonly ;
/* estimate "model 3" */
/* the t3_ar1 code does not partial out any fixed effects, so need to directly pass these in as regressors */
t3_ar1 , bsreps(`bsreps') sourcedata(`main_data') lhs(lnwage_sy) rhs(policy i.statefip i.year) keyrhs(policy) ;
end ;
runme ;
qui log close t3out ;
log close _all ;