PARCH

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

puf
Posts: 22
Joined: Sun Jan 09, 2011 4:26 pm

PARCH

Postby puf » Mon Jan 17, 2011 6:43 pm

Hi,
when I try to estimate a PARCH model (GARCH model with option PARCH), I get the following error message: "Attempt to raise a negative number to a non integer power in "EQUATION PERCEQ.ARCH(1,1,PARCH) PERCR. The data file is addtached, the code itself is very simple:

Code: Select all

wfopen 6.csv
genr logr = dlog(abs(prc)/cfacpr)
genr percr = @pch(abs(prc)/cfacpr)
equation logeq.ARCH(1,1,parch) logr
equation perceq.ARCH(1,1,parch) percr

Surprisingly, I have this problem only with percentage returns, parch model with logaritmic returns works fine. This seems to be really strange, since percentage and relative returns are very similar.
Is there bug in estimation of PARCH model, or am I just misunderstanding something?
Attachments
6.csv
(453.84 KiB) Downloaded 396 times

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

Re: PARCH

Postby EViews Gareth » Tue Jan 18, 2011 4:54 pm

Grab the latest patch.
Follow us on Twitter @IHSEViews

puf
Posts: 22
Joined: Sun Jan 09, 2011 4:26 pm

Re: PARCH

Postby puf » Sun Jan 30, 2011 12:33 pm

Hi Gareth,
I have another problem related to GARCH models. I believe that there should be some restrictions regarding the coefficients, e.g. all the estimated coefficients in the standard GARCH(1,1) should be positive. This seemts to work. However, when I try to estimate GARCH(0,1) with exogenous variable (which is there instead of squared returns, I sometimes get negative constant omega. Is it possible to somehow specify that omega should be positive? If this is just a bug, could you please fix it? Actual code is very simple:

Code: Select all

import 22.csv
genr logr = dlog(abs(prc)/cfacpr)
genr park = (log(askhi/bidlo))^2/(4*log(2))
equation eq1.arch(1,1,tdist) logr
equation eq2.arch(0,1,tdist) logr @ park(-1)
My concern is that eq2.c(1) is negative.
thank you
Attachments
22.csv
(452.8 KiB) Downloaded 367 times

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

PARCH

Postby EViews Gareth » Sun Jan 30, 2011 12:43 pm

This isn't a bug.
Follow us on Twitter @IHSEViews

puf
Posts: 22
Joined: Sun Jan 09, 2011 4:26 pm

Re: PARCH

Postby puf » Sun Jan 30, 2011 1:01 pm

Hi Gareth,
in this case, is it possible to impose this restriction (omega>=0) in eviews?

thank
Peter

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

Re: PARCH

Postby EViews Gareth » Sun Jan 30, 2011 2:16 pm

Unfortunately not.
Follow us on Twitter @IHSEViews

puf
Posts: 22
Joined: Sun Jan 09, 2011 4:26 pm

Re: PARCH

Postby puf » Mon Jan 31, 2011 6:17 pm

Dear Gareth,
I have problem estimating GARCH model with exogeneous variable in the variance equation. The code is again very simple:

Code: Select all

wfopen 2.csv
series park = (log(askhi/bidlo))^2/(4*log(2))
series logr = dlog(abs(prc)/cfacpr)
scalar length = @obsrange
scalar estimation_window = 200
for !i=estimation_window to length-2
    smpl @first+!i-estimation_window @first+!i
      equation kamo.ARCH(0,1,tdist) logr @ park(-1)
next
I get the error message:
"Positive or nonnegative argument to function expected in "equation kamo.ARCH(0,1,tdist) logr @ park(-1)"
I believe that there is some problem with the optimization routine. Let me give you some comments which might be useful:
1. this is not a problem with normally distributed residuals.
2. estimation of the model with t-distributed residuals does not work only sometimes, typically it works.
However, since I must do calculations in such a way as code describes (to perform rolling forecast), it is a problem. Please, could you fix this problem?
Attachments
2.csv
(469.63 KiB) Downloaded 380 times

puf
Posts: 22
Joined: Sun Jan 09, 2011 4:26 pm

Re: PARCH

Postby puf » Mon Feb 07, 2011 5:17 pm

Hi,
in addition to previous unsolved problem, I have additional one: estimation of the PARCH model with GED distributed errors does not work. This simple code:

Code: Select all

wfopen 6.csv
genr logr = dlog(abs(prc)/cfacpr)
equation eq.ARCH(parch,ged) logr
yields this error message:
"Attempt to raise a negative number to a non integer power in "EQUATION EQ.ARCH(PARCH,GED) LOGR".
This model works with normally and student-t distributed errors, but not with GED distributed errors.

Could you please fix this problem? (preferably the previously mentioned problem too).
thank you
Attachments
6.csv
(453.84 KiB) Downloaded 353 times

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

Re: PARCH

Postby EViews Gareth » Tue Feb 08, 2011 9:51 am

Sorry, must have missed your previous one. I've found and fixed both, and hopefully the next patch will fix it for you.
Follow us on Twitter @IHSEViews


Return to “Bug Reports”

Who is online

Users browsing this forum: Google [Bot] and 9 guests