Suppose there are the following estimated equations:
aa_1
aa_2
aa_3
bb_1
bb_2
bb_3
where aa and bb are cross sections and 1 and 2 indicate the different estimation periods. Suppose the series "value" equals 0.5 for aa_2 and 0.6 for bb_1 (else 2). I would like to run a loop that deletes all equations unless "value"<1, i.e. keep aa_2 and bb_1 only.
Code: Select all
for !i=1 to 3
string q=@str(!i)
for %jj aa bb
smpl @first+!i-1 @first+!i-1 if ident=%jj
if value>1 then
delete {%jj}_{q}
endif
next
next
However, it does not work. Any suggestions?