Decomposing shocks using State Space models

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

nectar
Posts: 14
Joined: Wed Jun 02, 2010 4:06 pm

Decomposing shocks using State Space models

Postby nectar » Wed Jun 08, 2011 3:15 pm

Dear all,

Can you please suggest if the following code is correct? I am trying to use a simple state space model to decompose structural shock generated using SVAR into a region-specific shock and a country-specific shock. This is a case of supply shock in a two-country setting. Here is my code:

Code: Select all

@signal sup1 = c(1)*s1+s2+[var=exp(c(2))] @signal sup2 = c(3)*s1+s3+[var=exp(c(4))] @state s1=[var=1] @state s2=[var=exp(c(5))] @state s3=[var=exp(c(6))] param c(1) .0 c(2) .0 c(3) .0 c(4) .0 c(5) .0 c(6) .0
s1 is the region-specific shock which is common in both countries. s2 is the country specific shock for the first country, and s3 for the second country. I only have pure noise specification for the country specific shocks.

Estimating the model is consistently giving this message ''WARNING: Singular covariance - coefficients are not unique.'' Moreover, when I chose Proc/Make Model, I keep getting syntax error message.


Any suggestion would be highly appreciated!

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Decomposing shocks using State Space models

Postby trubador » Thu Jun 09, 2011 7:13 am

I believe the warning message is quite correct. Your model is excessively flexible and makes it extremely difficult to obtain unique coefficient estimates. I do not think you can successfully estimate the common component, since model seems to be ill-defined.

nectar
Posts: 14
Joined: Wed Jun 02, 2010 4:06 pm

Re: Decomposing shocks using State Space models

Postby nectar » Thu Jun 09, 2011 8:13 am

Thank you. Can you please suggest where I have made mistake in specifying the following set of equations?

Code: Select all

[sup1=[a1 1 0][s1] [sup2=[a2 0 1][s2] [s3] And, the eviews code I have is: @signal sup1 = c(1)*s1+s2+[var=exp(c(2))] @signal sup2 = c(3)*s1+s3+[var=exp(c(4))]
where the supply shock of country 1 is decomposed into the region-specific shock (s1), and the country-specific shock (s2), and similarly for country 2. The unobservable components have following specification (for state equation):

Code: Select all

[s1]=[1 0 0][e0] [s2]=[0 1 0][e1] [s3]=[0 0 1][e2] again, the eviews code is: @state s1=[var=1] @state s2=[var=exp(c(5))] @state s3=[var=exp(c(6))]
and the error distribution is as follows:

Code: Select all

E(ee') = [1 0 0] = [0 x 0] = [0 0 y]
Therefore the transition equations only have white noise specification with the variance of the common shock set to 1, and the variance of country-specific shocks (x and y) is to be estimated.

Please note that this is the specification in Chaime et al. (1994) and Xu (2006) used in decomposing SVAR shocks into a common component and idiosyncratic components.

Thank you again, and I look forward to your suggestion.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Decomposing shocks using State Space models

Postby EViews Glenn » Thu Jun 09, 2011 10:59 am

You need to remove the error variances from the signal equations, or equivalently, remove states s2 and s3. You've doubled-up on the specific innovations. But even that might not be enough...

nectar
Posts: 14
Joined: Wed Jun 02, 2010 4:06 pm

Re: Decomposing shocks using State Space models

Postby nectar » Thu Jun 09, 2011 12:37 pm

Thanks, Glenn! I have corrected it now and tried several other specifications to get the decomposition. And it is still giving me the Singular Covariance warning. Do you have any other suggestion, especially related to decomposition (any reference to past discussions in this forum related to this)?

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Decomposing shocks using State Space models

Postby EViews Glenn » Thu Jun 09, 2011 2:40 pm

There needs to be something more to the specification in the previous papers, because as trubador notes, your specification as written is not really identified.

What your spec is saying that that your first variable has variance

v1 = a + b

and your second has variance

v2 = a + c

For any choice of underlying variance, I have an infinite number of choices for a, b, c. Suppose, for example that you set v1 = 10 and v2 = 20, and that you choose a = 5, b = 5, c = 15. I could just as easily set a = 2, b = 13, c = 18, etc...

nectar
Posts: 14
Joined: Wed Jun 02, 2010 4:06 pm

Re: Decomposing shocks using State Space models

Postby nectar » Tue Jun 14, 2011 12:27 pm

HI Glenn:

Sorry for the late response. I have attached a portion of the previous paper that I noted earlier. I am trying to replicate this for different countries. Please let me know where I made mistake in specifying these equations (in my codes posted previously), and can you suggest correction also.
xu.jpg
xu.jpg (69.01 KiB) Viewed 12448 times

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Decomposing shocks using State Space models

Postby EViews Glenn » Tue Jun 14, 2011 1:11 pm

There should be no errors in your signal equations.

Code: Select all

@signal sup1 = c(1)*s1+s2 @signal sup2 = c(3)*s1+s3 @state s1=[var=1] @state s2=[var=exp(c(5))] @state s3=[var=exp(c(6))]

nectar
Posts: 14
Joined: Wed Jun 02, 2010 4:06 pm

Re: Decomposing shocks using State Space models

Postby nectar » Tue Jun 14, 2011 1:50 pm

Thank you again, Glenn!

I had already tried the specification that you offered. I tried again and have attached the workfile. The problem persists. Can you please suggest if anything can be done?

Best,
Attachments
statespace_eviewsforum.WF1
(10.34 KiB) Downloaded 418 times

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

Re: Decomposing shocks using State Space models

Postby startz » Tue Jun 14, 2011 2:19 pm

The problem is, as Glenn said earlier, that the parameters aren't identified. This may be an error in the original article. However, it appears that the original author only cared about the ratio of common to regional variance, alpha^1/(alpha^1+P), which is identified.

nectar
Posts: 14
Joined: Wed Jun 02, 2010 4:06 pm

Re: Decomposing shocks using State Space models

Postby nectar » Tue Jun 14, 2011 2:57 pm

There are several other papers which has taken this very approach and haven't reported anything different. So I am wondering where the error might be.

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

Re: Decomposing shocks using State Space models

Postby startz » Tue Jun 14, 2011 3:11 pm

The original article doesn't report estimates of alpha or P. I'm fairly sure that's because they can't be found.

nectar
Posts: 14
Joined: Wed Jun 02, 2010 4:06 pm

Re: Decomposing shocks using State Space models

Postby nectar » Tue Jun 14, 2011 3:41 pm

In table 5a of the article, the author reports share of common shock using the alpha^1 and P1, which are parameters that were estimated using State Space model.

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

Re: Decomposing shocks using State Space models

Postby startz » Tue Jun 14, 2011 3:47 pm

But he doesn't report the individual parameters, does he? Just the share? The problem is that you're trying to estimate the individual parameters.

nectar
Posts: 14
Joined: Wed Jun 02, 2010 4:06 pm

Re: Decomposing shocks using State Space models

Postby nectar » Tue Jun 14, 2011 4:49 pm

But how can he report share without estimating the individual parameters? Is there a way to do that?


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests