Page 1 of 1

Overflow - Missing data generated

Posted: Fri Jan 23, 2015 1:48 am
by tvonbrasch
Hi

I have a panel workfile (2001 2009 x 3001089 -- 19448830 obs).

When i generate the variable
genr h1=h/h(-1)

i get the error message "Overflow - missing data generated in genr h1=h/h(-1)", the program stops and the variable h1 is generated. (see attached image)

Why does this error message occur? is it because h(-1) does not exist for all observations (if so, shouldnt that just generate nas?).

Is there something wrong with the variable H1 that is generated? (the values looks fine)
Why does the program stop? Can I write a code which forces the program to continue?

Thomas

Re: Overflow - Missing data generated

Posted: Fri Jan 23, 2015 8:00 am
by EViews Glenn
What is the minimum value of @abs(h)?

Re: Overflow - Missing data generated

Posted: Fri Jan 23, 2015 11:59 pm
by tvonbrasch
Hi

The minimum value is zero (show @min(@abs(h))). But should not the command genr h1=h/h(-1) just create NAs if h(-1) is zero? If I write show 2/0 i just get a series of NAs.
Thomas

Re: Overflow - Missing data generated

Posted: Sat Jan 24, 2015 8:20 am
by startz
Try

Code: Select all

series x=1/(1e-1000)
Note that while the error alert shows, x does end up as NA.

Re: Overflow - Missing data generated

Posted: Mon Jan 26, 2015 4:31 am
by tvonbrasch
Hi

Yes, that is a good thing. But the program stops ...?

Is there a way to write code so that the program will continue even when dividing a series by zero?
Thomas

Re: Overflow - Missing data generated

Posted: Mon Jan 26, 2015 4:59 am
by trubador
Try assigning a higher value to error count:

Code: Select all

seterrcount 1000

Re: Overflow - Missing data generated

Posted: Tue Jan 27, 2015 4:50 am
by tvonbrasch
Hi trubador

thanks. the setmaxerrs worked:

close @all
logmode -error
'seterrcount 1000
setmaxerrs 1000
wfcreate a 2000 2010 300000
genr x=0
genr y=1/x
genr z=2