kalman filter

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

Lia
Posts: 8
Joined: Tue Jun 09, 2009 12:36 pm

kalman filter

Postby Lia » Tue Jun 09, 2009 1:09 pm

I am trying to decompose the gdp into a cyclical and a trend component. I am using the following specification:
@signal dlgdp = sv1+ sv2

@state sv1 = sv1(-1) + [var = exp(c(1))]
@state sv2 = c(3)*sv2(-1) + [var = exp(c(2))]

Where dlgdp is the growth rate of the GDP.
The last week I was able to do it, nevertheless I re try to do it today and it give a warning message that say "singular covariance", but I am using the same data and the same data.

What can I do?

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

Re: kalman filter

Postby startz » Tue Jun 09, 2009 1:22 pm

I am trying to decompose the gdp into a cyclical and a trend component. I am using the following specification:
@signal dlgdp = sv1+ sv2

@state sv1 = sv1(-1) + [var = exp(c(1))]
@state sv2 = c(3)*sv2(-1) + [var = exp(c(2))]

Where dlgdp is the growth rate of the GDP.
The last week I was able to do it, nevertheless I re try to do it today and it give a warning message that say "singular covariance", but I am using the same data and the same data.

What can I do?
Change the starting values in the C vector before you estimate.

Lia
Posts: 8
Joined: Tue Jun 09, 2009 12:36 pm

Re: kalman filter

Postby Lia » Tue Jun 09, 2009 1:39 pm

Thank you for your reply!
How Can I change the coefficient in the c vector?
It is in View - specification - coefficient value?

Because even thought I can see the values I can not modified them...

Thank you!

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

Re: kalman filter

Postby startz » Tue Jun 09, 2009 1:49 pm

Open the C object in the workfile and edit the entries as you would any other object

Lia
Posts: 8
Joined: Tue Jun 09, 2009 12:36 pm

Re: kalman filter

Postby Lia » Tue Jun 09, 2009 2:10 pm

for "C object" , you refer to View - specification - coefficient value? in the state space window right? I have modified the coefficient in the coefficient values matrix mentioned, and it still give the same error.

I am sorry to do not get it so quickly. it Is my first week with the state space section of eviews...

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

Re: kalman filter

Postby startz » Tue Jun 09, 2009 2:23 pm

for "C object" , you refer to View - specification - coefficient value? in the state space window right? I have modified the coefficient in the coefficient values matrix mentioned, and it still give the same error.

I am sorry to do not get it so quickly. it Is my first week with the state space section of eviews...
No, I meant in the workfile window.

Lia
Posts: 8
Joined: Tue Jun 09, 2009 12:36 pm

Re: kalman filter

Postby Lia » Tue Jun 09, 2009 2:44 pm

Finally I get it!!!! :D

I fillout the C Vector in the workfile with zeros.. is that correct?

and it give me the same result :oops:

WARNING: Singular covariance - coefficients are not unique

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

Re: kalman filter

Postby startz » Tue Jun 09, 2009 3:50 pm

Finally I get it!!!! :D

I fillout the C Vector in the workfile with zeros.. is that correct?

and it give me the same result :oops:

WARNING: Singular covariance - coefficients are not unique
Yes, that was correct. You may want to check the results to see if the coefficients go to plus or minus infinity. You might also want to post the workfile to see if anyone knows what the problem is.

If you will forgive what may seem an odd question, are you sure you intend to model dlgdp rather than log(gdp)? I ask because GDP has a large unit root component. I'm not sure the growth rate does.

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

Re: kalman filter

Postby EViews Gareth » Tue Jun 09, 2009 3:53 pm

It may be that zeros are bad starting values.

Try other numbers, either at random, or ideally with some idea of what they should be.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests