Dear All, I ran the following command
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)           
}
but found the error message as Array
Does anyone know what's wrong with the code? Thanks.