Save threshold value

For questions regarding programming in the EViews programming language.

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

wxhdiy01
Posts: 21
Joined: Wed Apr 13, 2016 7:07 am

Save threshold value

Postby wxhdiy01 » Thu Aug 11, 2016 12:40 pm

Hi! I'm running a threshold model (Max breaks set to be 1) in Eviews, and want generate a new series with all observations equal to the value of the threshold calculated in the model. Is there a command that can automatically do this? Many thanks!

EViews Rebecca
EViews Developer
Posts: 113
Joined: Thu Apr 18, 2013 8:37 am

Re: Save threshold value

Postby EViews Rebecca » Thu Aug 11, 2016 2:30 pm

Do you mean

Code: Select all

series new = equation.@thresholds(1)

wxhdiy01
Posts: 21
Joined: Wed Apr 13, 2016 7:07 am

Re: Save threshold value

Postby wxhdiy01 » Mon Aug 15, 2016 6:13 am

Thanks for the reply! I tried the code but it returns "1 is not a valid index for vector-series-coefficient in
"SERIES NEW = TAR_FA_PORT_IN_GDP.@THRESHOLDS(1)"
I just want to know how to retrieve results from a threshold estimation in general. For example, if it's a self-exciting model, the threshold selected is y(-2), the value is 0.02, the lag length is 7, is there command to automatically store these information? The AIC of the estimated model can be retrieved by using @aic, and I'm looking for some similar command. Thanks!

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

Re: Save threshold value

Postby EViews Gareth » Mon Aug 15, 2016 8:38 am

If no thresholds were estimated, that error can occur.
Follow us on Twitter @IHSEViews

wxhdiy01
Posts: 21
Joined: Wed Apr 13, 2016 7:07 am

Re: Save threshold value

Postby wxhdiy01 » Mon Aug 15, 2016 12:11 pm

Thanks, but the estimated equation has a threshold... Let me think more about it, thanks for the help!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 33 guests