I ran the following code.
Code:
foreach y in 2003 2004 2005 { foreach s in 3 6 8 15 27 33 { local st: label state_64 `s' xtile course_10_`st'_`y' = course if state == `s' & year == `y' , nq(10) } }
It runs for the first inner loop : i.e. y = 2003 and s = 3,6, 8 ,15 ,27, 33
and then shows the error:
too many variables specified
r(103)
I am not sure what is wrong.
0 Response to Error in loop code
Post a Comment