ESTAR

Discussion of models with structural breaks or endogenous switching.

ESTAR

Postby ef08kp » Wed Aug 26, 2009 9:11 pm

I am kind of confused because in RATS programming manual by ENDERS there is code on LSTAR model i just changed transition function to ESTAR and the code is as follows where lag length=1 and delay parameter=1

nonlin a0 a1 b0 b1 gamma gamma.ge.0.
frml estar reer = a0 + a1*reer{1} + ( b0 + b1*reer{1})(1+exp(-gamma*(reer{1})**2))
lin(noprint) reer ; # constant reer{1}
com a0 = %beta(1), a1 = %beta(2), b0 = 1. , b1 = 1., gamma = 1.
nlls(frml=estar) reer / resids

However now i get a syntax error:

SX17. Missing Operator or Adjacent Operands
>>>>( b0 + b1*reer{1})(<<<<

thank you
ef08kp
 
Posts: 11
Joined: Fri Jul 24, 2009 6:08 am

Re: ESTAR

Postby condor » Thu Aug 27, 2009 4:37 am

You forgot to write the multiplication operator:
( b0 + b1*reer{1})*(1+exp(-gamma*(reer{1})**2))

Edit: I did not see the negative sign in front of the gamma term. My bad.
Last edited by condor on Thu Aug 27, 2009 9:55 am, edited 1 time in total.
condor
 
Posts: 15
Joined: Fri Apr 10, 2009 4:11 pm

Re: ESTAR

Postby ef08kp » Thu Aug 27, 2009 9:03 am

Sorry, but it is an estar transition function
ef08kp
 
Posts: 11
Joined: Fri Jul 24, 2009 6:08 am

Re: ESTAR

Postby moderator » Thu Aug 27, 2009 9:14 am

I received your email to our tech support address, but it looks like you've got the answer already here--you need an operator between those two parens.
moderator
Site Admin
 
Posts: 306
Joined: Thu Oct 19, 2006 4:33 pm


Return to Structural Breaks and Switching Models

Who is online

Users browsing this forum: No registered users and 1 guest