Flow control with string variables
Posted: Thu May 12, 2016 11:24 am
Hello,
Transition from R to Eviews programming has been a little painful, hope someone will help with the following question:
here deter is a "string vector", its elements are either "trend" or "cons". I ran the code and it appeared to work, but then the results did not appear to be right.
Thank you.
Transition from R to Eviews programming has been a little painful, hope someone will help with the following question:
Code: Select all
string xd=deter(!i)
if %xd="trend" then
%xd="d"
else
%xd="b"
endifThank you.