Code:
local in1 "inrange(year,2011,2012)"
local in2 "inrange(year,2009,2014)"
foreach v of local in1 in2 {
reghdfe lPAY3 Treat Post Treat*Post if `v', a(stkcd year) vce(cl stkcd)
}Does anyone know what's wrong with the code? Thanks.
0 Response to use local in foreach command
Post a Comment