STAR*

For questions about EViews Add-ins available from the EViews Add-ins webpage. Note each add-in available on our webpage will have its own individual thread.

Moderators: EViews Gareth, EViews Moderator, EViews Esther

NicolasR
Posts: 90
Joined: Mon Nov 04, 2013 6:22 pm
Location: Here

Re: STAR*

Postby NicolasR » Tue Sep 22, 2015 8:06 pm

Hi Louisa,

For the example 1, after installing the add-in just entee in the command window:

Code: Select all

vector(11) sv=1
z.star(variables=x x(-1) x(-2),transition=x(-1),lstr,evaluation,sv=sv)


¿Which version of Eviews are you using? ¿Of which fields to fill do you have questions? all of them are explained if the pdf.

masume
Posts: 2
Joined: Sun Oct 11, 2015 10:32 am

Re: STAR*

Postby masume » Sun Oct 11, 2015 10:55 am

hi
thank you so much for your useful add-ins.
i have some question about running it: 1.while writting linear variables in the program box, and estimating the model, why is omitted the two first linear variables?
2.how can i solve the over flow..... error?
best regard

NicolasR
Posts: 90
Joined: Mon Nov 04, 2013 6:22 pm
Location: Here

Re: STAR*

Postby NicolasR » Thu Oct 15, 2015 7:06 pm

Masume:

What do you mean by ommitted?, the first two linear variables are the dependent variable and the constant. ¿What did you tried to do to get the over flow error?, please post your workfile.

masume
Posts: 2
Joined: Sun Oct 11, 2015 10:32 am

Re: STAR*

Postby masume » Sat Oct 17, 2015 1:22 am

Hi Nicolas
i don't have two dependent variables. my dependent variable is [inf] and independant variables are [inf(-1), y, pim, oil, neer], and my transition variable is [neer(-1)].
can you please guide me that how can i estimate my model? does it have a special arrangement for writting the variables in star box?
i sent you a file. please check it and tell me what is wrong?
i sent you the work file too.
you know, i estimate the model in star program not in eviews command line. is it true?
about the over flow error: when i add an additional variable, this error occures.
best regards
Attachments
2015-10-17_11-22-45.pdf
i write the variables in this arrangement in star box. please guide me what is wrong.
(21.04 KiB) Downloaded 686 times
last data 3.wf1
this is my work file.
(75.69 KiB) Downloaded 578 times

NicolasR
Posts: 90
Joined: Mon Nov 04, 2013 6:22 pm
Location: Here

Re: STAR*

Postby NicolasR » Mon Oct 26, 2015 6:14 pm

The specification you posted does not run because you only have 35 observations, since the tests are based on expansions that use variables combination and exponentials, like the RESET test, the testing procedure cannot be performed, you can bring out some variables, nevertheless I recommend you to increase the frequency of the data for two reasons, be able to run the tests and increase the possibility of reject linearity, there is evidence that the temporal aggregation hides the nonlinear component of a series.

JoeLe156
Posts: 1
Joined: Sun Mar 13, 2016 2:46 am

Re: STAR*

Postby JoeLe156 » Sun Mar 13, 2016 4:39 am

Hi all, I encountered this problem while running my model: std error, t-statistic and Prob. returned NA and I really don't understand why. Here I attach my result screenshot and data workfile in case you can help me check. Thanks in advance.
Attachments
data - copy.wf1
(343.76 KiB) Downloaded 515 times
Untitled.png
Untitled.png (14.54 KiB) Viewed 23064 times

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: STAR*

Postby startz » Sun Mar 13, 2016 8:26 am

You probably have bad starting values in the C vector.

elmst616
Posts: 32
Joined: Fri Apr 29, 2016 2:36 pm

Re: STAR*

Postby elmst616 » Tue May 10, 2016 12:29 pm

Thanks for the great Add-In. However, I am not clear on whether this add-in can handle data with multiple regimes (3 or more regimes)? In the add-in documentation the provided examples do not show the threshold specification summary.

So does this add-in estimate the appropriate number of thresholds and the value of each threshold?

NicolasR
Posts: 90
Joined: Mon Nov 04, 2013 6:22 pm
Location: Here

Re: STAR*

Postby NicolasR » Wed May 11, 2016 6:06 pm

Hi,

In STAR models the transition function determines the regime. Therefore with a STAR model you estimate as many regimes as values that your transition function takes. The threshold "c", the "Gamma" (In the add-in documentation notation) and the transition variable determines the behavior of your transition function. If Gamma is large enough then you will have a TAR model with two regimes in the LSTAR context, otherwise you will have many regimes. The following code could help.

Code: Select all

wfcreate u 1 1000
genr x=@trend/100
for !gamma=0 to 20 step 0.1 'Smooth regimes to quick regimes
   genr y=@logit(!gamma*(x-2.5))
   y.line
   statusline !gamma
next


Best regards,

elmst616
Posts: 32
Joined: Fri Apr 29, 2016 2:36 pm

Re: STAR*

Postby elmst616 » Wed May 11, 2016 6:27 pm

NicolasR wrote:Hi,

In STAR models the transition function determines the regime. Therefore with a STAR model you estimate as many regimes as values that your transition function takes. The threshold "c" and the "Gamma" (In the add-in documentation notation) determines the behavior of your transition function. If Gamma is large enough then you will have a TAR model with two regimes in the LSTAR context, otherwise you will have many regimes. The following code could help.

Code: Select all

wfcreate u 1 1000
genr x=@trend/100
for !gamma=0 to 20 step 0.1 'Smooth regimes to quick regimes
   genr y=@logit(!gamma*(x-2.5))
   y.line
   statusline !gamma
next


Best regards,


Hi Nicolas,

Thank you so much for the kind and helpful reply! The above code is indeed helpful and most of all, helps me understand that STAR models can have many regimes and the number of regimes is dependent upon the number of different values taken by the transition function. Thanks!

elmst616
Posts: 32
Joined: Fri Apr 29, 2016 2:36 pm

Re: STAR*

Postby elmst616 » Fri May 20, 2016 4:25 pm

NicolasR wrote:Hi,

In STAR models the transition function determines the regime. Therefore with a STAR model you estimate as many regimes as values that your transition function takes. The threshold "c", the "Gamma" (In the add-in documentation notation) and the transition variable determines the behavior of your transition function. If Gamma is large enough then you will have a TAR model with two regimes in the LSTAR context, otherwise you will have many regimes. The following code could help.

Code: Select all

wfcreate u 1 1000
genr x=@trend/100
for !gamma=0 to 20 step 0.1 'Smooth regimes to quick regimes
   genr y=@logit(!gamma*(x-2.5))
   y.line
   statusline !gamma
next


Best regards,


Dear NicolasR,

I hoping you can be of some additional help. I have estimated a STR model that has resulted in a large estimate of gamma. Does this indicate that quick regimes such as TAR might be a better fit?
Attachments
d4star.png
d4star.png (31.72 KiB) Viewed 22833 times

NicolasR
Posts: 90
Joined: Mon Nov 04, 2013 6:22 pm
Location: Here

Re: STAR*

Postby NicolasR » Sat May 21, 2016 3:24 pm

Maybe. To check how your transition function behaves you can select the option "Evaluation of the transition function" and this will give you the values that your transition function takes. If the function only takes two values then you will have a TAR model. Do you want the model to calculate forecasts? or for what purpose?

Best regards,

elmst616
Posts: 32
Joined: Fri Apr 29, 2016 2:36 pm

Re: STAR*

Postby elmst616 » Sat May 21, 2016 3:27 pm

Dear NicolasR,

Thank you for your response above. I just saw it there, as I am posting another issue.

I am having a problem with estimation. I have tried changing my starting values and I can't seem to resolve the problem here. Here is an upload of my output. But what is strange is that the transition variable I am using has some very strong results in the tests for significance. Also it seems I am correct in estimating an LSTR, as indicated by the structure tests.

However there is clearly something wrong with my standard errors, t-stats and p-values. Do you have any idea how I might resolve this issue?
Attachments
structure.png
structure.png (6.86 KiB) Viewed 22811 times
tv.png
tv.png (8.87 KiB) Viewed 22811 times
problem.png
problem.png (31.6 KiB) Viewed 22811 times

elmst616
Posts: 32
Joined: Fri Apr 29, 2016 2:36 pm

Re: STAR*

Postby elmst616 » Sat May 21, 2016 3:38 pm

NicolasR wrote:Maybe. To check how your transition function behaves you can select the option "Evaluation of the transition function" and this will give you the values that your transition function takes. If the function only takes two values then you will have a TAR model. Do you want the model to calculate forecasts? or for what purpose?

Best regards,


It does appear to take on more than two values. Primarily I am not interested in forecasting, but rather in explaining observed patterns in two time series. For example I have two time series which have exhibited a coupling behavior over some time, meaning they nearly converged in value. My theory is that this coupling pattern was triggered by an exogenous observed variable crossing some threshold. So I guess my interests lie in model selection primarily, because I'd like to argue that some particular transition/threshold variable is the most significant variable in determining the regime change.
Attachments
d4transition.png
d4transition.png (16.15 KiB) Viewed 22811 times

NicolasR
Posts: 90
Joined: Mon Nov 04, 2013 6:22 pm
Location: Here

Re: STAR*

Postby NicolasR » Sat May 21, 2016 3:47 pm

I looks like that the optimization algorithm does not reach convergence. You can try different strarting values. When I have no idea what values, what I usually do is to try random numbers for the starting values and I keep the ones that reach the best values of some criteria (BIC, AIC, R2,SSR). If this does not work you can change the convergence parameter of the optimization algorithm, the default can be changed in Options->General Options->Estimation Options.

For what I can see the model does not differ to much from a TAR. You can graph the transition function and the two time series over the same axis to see if the transition variable explains the divergence between the series.


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 7 guests