Code:
local replace replace
forvalues i = 2007(1)2017 {
forvalues j = `i'+1(1)2018 {
xi: reg einv epub_arimean_l100 $x o(`j').year ib`i'.year, robust
outreg2 using "log\htwx21ene-t3", excel ctitle(`i'_`j') dec(4) `replace'
local replace append
}
}
0 Response to Double loops in Stata?
Post a Comment