syntax error in specifying state space model

For econometric discussions not necessarily related to EViews.

Moderators: EViews Gareth, EViews Moderator

EviewsUser1
Posts: 37
Joined: Thu Aug 28, 2014 8:08 am

syntax error in specifying state space model

Postby EviewsUser1 » Tue Sep 16, 2014 7:33 am

@ename e1
@ename e2
@evar var(e1)=exp(c(4))
@evar var(e2)=exp(c(5))

@signal ipg_norm = c(6)*sv(1)+e1
@state sv1 = c(1)*sv1(-1) + c(2)*sv2(-1) + c(3)*sv3(-1)+e2
@state sv2 = sv1(-1)
@state sv3 = sv2(-2)

the syntax error occurs on the @signal equation

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

Re: syntax error in specifying state space model

Postby NicolasR » Tue Sep 16, 2014 12:10 pm

Hi,

You have two typos,

Code: Select all

@ename e1
@ename e2
@evar var(e1)=exp(c(4))
@evar var(e2)=exp(c(5))

@signal ipg_norm = c(6)*sv1+e1 ' you wrote the state variable as a lead of orden one,this can not be done
@state sv1 = c(1)*sv1(-1) + c(2)*sv2(-1) + c(3)*sv3(-1)+e2
@state sv2 = sv1(-1)
@state sv3 = sv2(-1) ' you wrote the state variable 3 as a lag of orden two of the state variable 2 if you want another lag you should enter @state sv4=sv3(-1)


That will work.


Return to “Econometric Discussions”

Who is online

Users browsing this forum: No registered users and 25 guests