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?
kalman filter
Moderators: EViews Gareth, EViews Moderator
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: kalman filter
Change the starting values in the C vector before you estimate.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?
Re: kalman filter
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!
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
Open the C object in the workfile and edit the entries as you would any other object
Re: kalman filter
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...
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
No, I meant in the workfile window.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...
Re: kalman filter
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
WARNING: Singular covariance - coefficients are not unique
I fillout the C Vector in the workfile with zeros.. is that correct?
and it give me the same result
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
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.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![]()
WARNING: Singular covariance - coefficients are not unique
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
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.
Try other numbers, either at random, or ideally with some idea of what they should be.
Who is online
Users browsing this forum: No registered users and 2 guests
