String variables in loop....?
Posted: Tue Oct 23, 2012 6:40 am
Hi
Sometimes, it would be convenient to split long equations into parts using string variables.
For example, how can one make a string variable (hstring) so that atest2 would equal atest 1 in the program:
string hstring = "log(l{%k})"
for %k 15
equation atest1.ls log(h{%k}) log(l{%k})
equation atest2.ls log(h{%k}) {hstring}
next
It seems that Eviews is not recognising the loop string %k when it is a part of another string variable.
Sincerely
Thomas von Brasch
Sometimes, it would be convenient to split long equations into parts using string variables.
For example, how can one make a string variable (hstring) so that atest2 would equal atest 1 in the program:
string hstring = "log(l{%k})"
for %k 15
equation atest1.ls log(h{%k}) log(l{%k})
equation atest2.ls log(h{%k}) {hstring}
next
It seems that Eviews is not recognising the loop string %k when it is a part of another string variable.
Sincerely
Thomas von Brasch