fit command when equation contains @pc

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

leah
Posts: 35
Joined: Tue Jul 16, 2013 2:29 pm

fit command when equation contains @pc

Postby leah » Mon Apr 27, 2015 1:30 pm

I'm running into a problem when trying to fit an equation that is specified with @pc or @pca. When I try using the fit command when the sample set to a single quarter or month, I get an error saying there's an overflow in the equation. Attached is a program that illustrates the problem (sometimes you have to run it twice).

EViews 9 Enterprise, 64-bit, April 27, 2015 build.
Attachments
test3.prg
(233 Bytes) Downloaded 546 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: fit command when equation contains @pc

Postby EViews Gareth » Mon Apr 27, 2015 2:11 pm

SER2 1999Q4 is equal to zero when that happens. Therefore you cannot calculate @pc(ser2) for 2000q1. Hence the error.

leah
Posts: 35
Joined: Tue Jul 16, 2013 2:29 pm

Re: fit command when equation contains @pc

Postby leah » Mon Apr 27, 2015 2:20 pm

I just ran the program and the same thing happened when 1999Q4 was equal to 17.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: fit command when equation contains @pc

Postby EViews Gareth » Mon Apr 27, 2015 2:25 pm

Send the workfile after that run.

leah
Posts: 35
Joined: Tue Jul 16, 2013 2:29 pm

Re: fit command when equation contains @pc

Postby leah » Tue Apr 28, 2015 11:21 am

My apologies, the problem in the example program was indeed caused by a zero value in ser2. I'm giving up on example programs; attached is the workfile that I'm actually having problems with. If I do this:

smpl 2002m12 2002m12
core_capnet.forecast temp

I get this:
"Attempt to raise a negative number to a non integer power"

However, this works just fine:
smpl @all
core_capnet.forecast temp

When I use Eviews 8 to run the programs that stumble on this error, it works as well.
Attachments
corecap.wf1
(30.7 KiB) Downloaded 518 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: fit command when equation contains @pc

Postby EViews Gareth » Tue Apr 28, 2015 11:52 am

What's the build date of your copy of 9? It works for me just fine in mine.

leah
Posts: 35
Joined: Tue Jul 16, 2013 2:29 pm

Re: fit command when equation contains @pc

Postby leah » Tue Apr 28, 2015 12:06 pm

April 27th. It works when the sample is set to 2002m12 2002m12?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: fit command when equation contains @pc

Postby EViews Gareth » Tue Apr 28, 2015 12:55 pm

Yep.
Attachments
2015-04-28_125357.png
2015-04-28_125357.png (41.83 KiB) Viewed 8447 times


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests