Dear All, I have 4 key explanatory variables (privo, lly, dby, btot) and 3 conditioning information sets (empty, policy, and full as defined below)
As such, I expect to have results on 4*3=12 regressions. However, the above procedure offer 52 regression outcomes. I am wondering if something wrong with the command
Any suggestions are highly appreciated.
Code:
local empty "" local policy "school60 gov pi bmp trade" local full "school60 gov pi bmp trade revc assass avelf" // legal origins (and its interactions with gap60) local ivs "englishn frenchn germann englishn_gap frenchn_gap germann_gap" local all "growth privo gap60 privo_gap lly lly_gap dby dby_gap btot btot_gap `full'" local f "word excel dec(3) sortvar(`all')" /* ivreg2 growth (privo privo_gap = `ivs') gap60, robust outreg2 using "log\ahm05qje-t1", `f' ctitle(privo_empty) replace ivreg2 growth (privo privo_gap = `ivs') gap60 `policy', robust outreg2 using "log\ahm05qje-t1", `f' ctitle(privo_policy) append ivreg2 growth (privo privo_gap = `ivs') gap60 `full', robust outreg2 using "log\ahm05qje-t1", `f' ctitle(privo_full) append */ local a replace foreach v of varlist privo lly dby btot { foreach ctr of varlist `empty' `policy' `full' { ivreg2 growth (`v' `v'_gap = `ivs') gap60 `ctr', robust outreg2 using "log\ahm05qje-t1", `f' ctitle(`v'_`cts') `a' local a append } }
Code:
foreach ctr of varlist `empty' `policy' `full' {
Comment