Page 1 of 1

Log of non positive number

Posted: Thu Nov 04, 2010 5:50 pm
by GilMan
Hi, i'm trying to run this code below,

but the following error appears "Log of non positive number"

code

for !i=1 to group01.@count

%iname = group01.@seriesname(!i)
!icode = 1
!j = 1


for !i=1 to group01.@count

equation calculategarch{!icode}.arch(ged) {%iname} c
calculategarch{!icode}.makegarch {%iname} + !j

group calculatedgarch
calculatedgarch.add {%iname} + !j

!icode = !icode + 1
!j = !j + 1
next
next

Can someone help me please!!

I'm using ev 5.1

Re: Log of non positive number

Posted: Thu Nov 04, 2010 6:26 pm
by EViews Gareth
That's a crazy looking loop you have there, it seems you're running two loops, one inside the other, using !i for both.

However I don't think that is causing the error. The most likely cause is that one of the ARCH estimations is going wrong. Nobody is going to be able to help much more than that without running it on the data themselves.