IF statement with series' elements
Posted: Tue May 08, 2012 1:09 am
Hello,
I have a question about "if statement". When I write the following program (see below), Eviews compare the series and not each element of the series. Do you know how should I modify the program to achieve what I want? Thanks a lot!
series test1
test1= variable1 + variable1bis
series test2
test2 = variable2
series test3
if test1 > test2 then
test3 = test1
else test3 = test2
endif
I have a question about "if statement". When I write the following program (see below), Eviews compare the series and not each element of the series. Do you know how should I modify the program to achieve what I want? Thanks a lot!
series test1
test1= variable1 + variable1bis
series test2
test2 = variable2
series test3
if test1 > test2 then
test3 = test1
else test3 = test2
endif