Another problem with division by zero

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

bobshackleton
Posts: 25
Joined: Wed Mar 23, 2011 6:50 am

Another problem with division by zero

Postby bobshackleton » Wed Mar 23, 2011 7:08 am

I'm running into a problem that GeoffC posted on as well on October 8, but your suggested solution doesn't seem to work. For a calculation using a series qipdenreqc that has several elements set to zero, I write:

Code: Select all

series pipdenreqc = ipdenreqc / @recode(qipdenreqc = 0.0 , na , qipdenreqc)


but still get back a 'division by zero' error, even though this seems to be identical in form to your suggested solution for GeoffC. Any ideas? Thanks.

bobshackleton
Posts: 25
Joined: Wed Mar 23, 2011 6:50 am

Re: Another problem with division by zero

Postby bobshackleton » Wed Mar 23, 2011 7:13 am

Sorry to bother you. Just solved the problem - program was jumping to another line that looked very similar but still had a problem.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests