I am trying to loop over a different set of control variables. I run the below code but get an error { required
. Any help would be appreciated.
local tmax "tmax_3 tmax_2 tmax_1 tmax0 tmax1 tmax2 tmax3"
local tmin "tmin_3 tmin_2 tmin_1 tmin0 tmin1 tmin2 tmin3"
local precip "precip_3 precip_2 precip_1 precip0 precip1 precip2 precip3"
est clear
local m=1
foreach var of varlist good_health better_health {
foreach weather of local tmax tmin precip {
eststo model_`m'_`weather': reg `var' `weather', robust cluster(parish_id)
local m `++m'
}
}