Threshold grid search

For questions regarding programming in the EViews programming language.

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

concita82
Posts: 1
Joined: Fri Feb 03, 2012 8:52 am

Threshold grid search

Postby concita82 » Fri Feb 03, 2012 8:58 am

Dear guys,

I am new in Eviews programming. One of my friends sent me this code to run TAR threshold grid search (Enders-Siklos (2001)) together with EVIEWS file. I have tried to run the code, but it gives me an error (insufficient number of observations). Anyone could help me to solve this problem? I send you the database and the code. Thank you.
Attachments
enders_granger.prg
Code
(336 Bytes) Downloaded 346 times
spread_file.WF1
Eviews file
(18.24 KiB) Downloaded 238 times

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

Re: Threshold grid search

Postby trubador » Sat Feb 04, 2012 3:05 pm

That's because the code is incomplete. The problem arises from the series "spread_sort". I think, the dependent variable (i.e. spread) has to be sorted prior to the estimation in order to generate an exogenous variable (i.e. tau).


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests