State Space Covariance

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

ErikSpanberg
Posts: 4
Joined: Tue Dec 20, 2016 7:30 am

State Space Covariance

Postby ErikSpanberg » Thu Sep 12, 2019 5:12 am

Hello!

I have a question regarding state space output.

Let's say I have a state space object "SSOBJECT". Does SSOBJECT.@Sm_statecov produce COV(state_{t|T}) or COV(state_t, state_T)?

If it's not the latter, is there any way to get COV(state_t, state_T)?

/Erik

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

Re: State Space Covariance

Postby EViews Glenn » Thu Sep 12, 2019 12:23 pm

The former.

Do you want cov(state(t|T), state(T|T))?

I haven't looked at this in a while, but off the top of my head, I can't think of an easy way to get that one from what we provide you. I'll have to take a look at the papers again.

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

Re: State Space Covariance

Postby EViews Glenn » Thu Sep 12, 2019 12:45 pm

My 2 minute look at the De Jong and Mackinnon (1988) paper suggests that if the above is indeed what you want, you can get it by saving the one-step ahead and filtered state covariances and doing a recursion. This is based on a quick look so I may be wrong, but it looks as though it's possible from the results that we offer, but unfortunately, not built-in.

The only thing that we don't have a easy way of extracting is the dated T transition matrix, but that shouldn't be too hard to obtain.

Piet De Jong and Murray J. Mackinnon
Biometrika, Vol. 75, No. 3 (Sep., 1988), pp. 601-602

ErikSpanberg
Posts: 4
Joined: Tue Dec 20, 2016 7:30 am

Re: State Space Covariance

Postby ErikSpanberg » Tue Sep 17, 2019 2:38 am

Yes, that is indeed what I want. I'll look into that. Thank you

ErikSpanberg
Posts: 4
Joined: Tue Dec 20, 2016 7:30 am

Re: State Space Covariance

Postby ErikSpanberg » Tue Sep 17, 2019 5:16 am

I solved it and it worked perfectly, thanks for quick response.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests