I am encountering error while running a loop in stata. The following is my code
HTML Code:
forvalues i = 1/`MaxLPLags' { foreach var in state_gdp state_exp TE_shock { gen bad`var'`i' = L`i'.`var'*`state' gen good`var'`i' = L`i'.`var'*(1-`state') } }
HTML Code:
invalid syntax r(198);
Thank you.
Regards
Indrani
0 Response to Encountering error r(198) while running a loop in stata
Post a Comment