state-space model

For questions regarding programming in the EViews programming language.

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

Emily89
Posts: 8
Joined: Mon Jun 17, 2013 8:36 am

state-space model

Postby Emily89 » Mon Jun 17, 2013 8:53 am

hi, I am working on a dynamic factor model. I try to use the state-space model to figure out a common factor for GDP of different countries.
The model I use is:

Y(t) = A*Y(t-1) +B*F(t) +u(t)
F(t) = C*F(t-1) + e(t)

The F(t) is the dynamic factor model(unobservable), I enter the following code in the eviews 7:

@signal uk = c(11)*sv1 + c(21)*uk(-1) + [var=exp(c(1))]
@signal germany = c(12)*sv1 +c(22)*germany(-1) + [var=exp(c(2))]
@signal france = c(13)*sv1 +c(23)*france(-1) + [var=exp(c(3))]

@state sv1 = c(31) * sv1(-1) + [var=exp(c(32))]

But the standard error, z statistics and probability are all "NA". What's wrong with the code? Could anyone help?

Thank you!

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

Re: state-space model

Postby startz » Mon Jun 17, 2013 10:37 am

hi, I am working on a dynamic factor model. I try to use the state-space model to figure out a common factor for GDP of different countries.
The model I use is:

Y(t) = A*Y(t-1) +B*F(t) +u(t)
F(t) = C*F(t-1) + e(t)

The F(t) is the dynamic factor model(unobservable), I enter the following code in the eviews 7:

@signal uk = c(11)*sv1 + c(21)*uk(-1) + [var=exp(c(1))]
@signal germany = c(12)*sv1 +c(22)*germany(-1) + [var=exp(c(2))]
@signal france = c(13)*sv1 +c(23)*france(-1) + [var=exp(c(3))]

@state sv1 = c(31) * sv1(-1) + [var=exp(c(32))]

But the standard error, z statistics and probability are all "NA". What's wrong with the code? Could anyone help?

Thank you!
Nothing appears to be wrong with the code. You might try
(1) Changing the model some. Perhaps constants in each equation?
(2) Try different starting values for the parameters?


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests