Overflow - Missing data generated

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

Overflow - Missing data generated

Postby tvonbrasch » Fri Jan 23, 2015 1:48 am

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
Attachments
Eviews Overflow Missing data.jpg
Eviews Overflow Missing data.jpg (181 KiB) Viewed 7936 times

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Overflow - Missing data generated

Postby EViews Glenn » Fri Jan 23, 2015 8:00 am

What is the minimum value of @abs(h)?

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

Re: Overflow - Missing data generated

Postby tvonbrasch » Fri Jan 23, 2015 11:59 pm

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

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Overflow - Missing data generated

Postby startz » Sat Jan 24, 2015 8:20 am

Try

Code: Select all

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

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

Re: Overflow - Missing data generated

Postby tvonbrasch » Mon Jan 26, 2015 4:31 am

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

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Overflow - Missing data generated

Postby trubador » Mon Jan 26, 2015 4:59 am

Try assigning a higher value to error count:

Code: Select all

seterrcount 1000

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

Re: Overflow - Missing data generated

Postby tvonbrasch » Tue Jan 27, 2015 4:50 am

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


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests