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
Overflow - Missing data generated
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
tvonbrasch
- Posts: 569
- Joined: Fri Apr 15, 2011 5:35 am
Overflow - Missing data generated
- Attachments
-
- 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
What is the minimum value of @abs(h)?
-
tvonbrasch
- Posts: 569
- Joined: Fri Apr 15, 2011 5:35 am
Re: Overflow - Missing data generated
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
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
Try
Note that while the error alert shows, x does end up as NA.
Code: Select all
series x=1/(1e-1000)
-
tvonbrasch
- Posts: 569
- Joined: Fri Apr 15, 2011 5:35 am
Re: Overflow - Missing data generated
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
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
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
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
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
Who is online
Users browsing this forum: No registered users and 2 guests
