Save final state(s) of sspace in table or vector

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

EllenEv
Posts: 2
Joined: Sat Jul 05, 2014 5:30 am

Save final state(s) of sspace in table or vector

Postby EllenEv » Sat Jul 05, 2014 5:38 am

Hey guys,

I'm estimating a state space model and would like to know the code with which I can save part of the sspace output (the final state and its RMSE) in a vector or table. I know that statefinal shows you the value of the final state but I don't seem to succeed in saving it. I've tried stuff like: vector coef(101)=sspaceA.statefinal(1) ; vector coef(101)=sspaceA.statefinal(c) ; vector coef(101)=sspaceA.@statefinal(1) but without success. Couldn't found anyone with a similar problem on this topic.

Thanks in advance for your help!

Ellen

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

Re: Save final state(s) of sspace in table or vector

Postby EViews Glenn » Tue Jul 08, 2014 8:14 am

Code: Select all

matrix a = sspaceA.@pred_state
will give you a matrix of the one-step ahead predictions. You can grab the last row of this matrix. Similarly for the standard errors using @pred_statese. We don't produce RMSEs. The documentation for the state space object in the object reference describes all of the keywords that give you access to computational results.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests