为什么执行这个代码,显示time variable not set

foreach i of num 1/14{
gen hindex_i'=da007_i'_
recode hindex_i' 2=0 replace hindex_i'=1 if da007_w2_1_i'_==1 & l.hindex_i'==1
replace hindex_i'=1 if da007_w2_1_i'==2 & l.hindexi'==1 & da007_w2_2_i'==1
replace hindex
i'=0 if da007_w2_1_i'==2 & l.hindexi'==1 & da007_w2_2_i'==2
replace hindex
i'=1 if da007_w2_1_i'==1 & l.hindexi'==0 & da007_w2_2_i'==1
replace hindex
i'=0 if da007_w2_1_i'==1 & l.hindexi'==0 & da007_w2_2_i'==2
replace hindex
i'=1 if da007_w2_1_i'==2 & l.hindex`i'==0
}

先给数据集设置时间变量