Page 1 of 1

Error: "NA found in matrix in"

Posted: Thu May 07, 2009 12:00 pm
by Lama
Dear all,

in my program I get the error ""NA found in matrix in" while trying to execute a for-loop (combined with "if-then-else").

Now I'm stuck: I do not even use a matrix in these operations (just plain series) and I do not understand why NA could be a problem.

I checked, in the series that is tested with an if-then command there are some NA but there are "valid" values, too.

I'd be very grateful if somebody could help me

Yours,

Lama

Re: Error: "NA found in matrix in"

Posted: Thu May 07, 2009 12:10 pm
by EViews Gareth
We'll need more information.

The ideal situation would be for you to post the workfile and the program...

Re: Error: "NA found in matrix in"

Posted: Thu May 07, 2009 11:29 pm
by Lama
Hi Gareth,

of course you're right.

(The program should result in a season's overall score.)
eviews1.prg
(769 Bytes) Downloaded 703 times
Eviewswkfile1.WF1
(28.95 KiB) Downloaded 564 times

Thanx a lot!

Lama

Re: Error: "NA found in matrix in"

Posted: Fri May 08, 2009 4:50 am
by trubador
It seems, as a first impression, your specification of IF statement is incorrect. You should check the following link for an example similar to your case: http://forums.eviews.com/viewtopic.php?f=5&t=799#p2679 Other than that, what you are trying to achieve is still somewhat ambiguous. If possible, please give some more information on the variables and definiton of your problem...

Re: Error: "NA found in matrix in"

Posted: Sat May 09, 2009 5:26 am
by Lama
Hi Trubador,

thanks a lot for your hint.

The problem now is fixed: I just forgot to tell EVIEWS which particular element in the series had to be increased. Now the error does not occur anymore.

Sorry for bothering you & thanks again

Lama