Missing Values in the Signal Eq of the State Space Model

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

dhanssen
Posts: 35
Joined: Sun Oct 12, 2008 11:03 am

Missing Values in the Signal Eq of the State Space Model

Postby dhanssen » Fri Jun 19, 2009 9:12 am

I just wanted to double check -- within the state space model (sspace), Eviews allows for missing values in the state equation, but not in the signal equation, is this correct?

dhanssen
Posts: 35
Joined: Sun Oct 12, 2008 11:03 am

Re: Missing Values in the Signal Eq of the State Space Model

Postby dhanssen » Fri Jun 19, 2009 2:57 pm

It actually seems that it doesn't allow for missing values in either the state or signal equation -- which means that I must interpolate all values since I'm running it with panel data so if I delete one date observation I must do it for all cross sections. Is this the only method of making this work? Any advice is much appreciated!

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

Re: Missing Values in the Signal Eq of the State Space Model

Postby EViews Glenn » Mon Jun 22, 2009 9:32 am

Not true, EViews should handle missings in the signal equation.

dhanssen
Posts: 35
Joined: Sun Oct 12, 2008 11:03 am

Re: Missing Values in the Signal Eq of the State Space Model

Postby dhanssen » Mon Jun 22, 2009 12:48 pm

Thank you very much for your help! I was hoping this is the case, but am wondering why I get the following error when I run the state space without filling in missing values:

" Procedure does not allow breaks in sample (after excluding observations with state equation NAs"

I first tried to fill in the missing values for just the variables in the in the signal equation, and still got this error, and now have filled in missing values for variables in both the state and signal and then it will begin solving.

Thank you once more for your assistance!

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

Re: Missing Values in the Signal Eq of the State Space Model

Postby EViews Glenn » Mon Jun 22, 2009 1:28 pm

It's the missings in the explanatory variables in the state equation that are causing problems.

dhanssen
Posts: 35
Joined: Sun Oct 12, 2008 11:03 am

Re: Missing Values in the Signal Eq of the State Space Model

Postby dhanssen » Mon Jun 22, 2009 1:40 pm

So are you saying that Eviews will not allow for missing values for variables in my state equation then? For example, if I have:

y = c(1) + sv1 + c(5)*x + c(6)* z

@state sv1 = c(2)*sv1(-1) + c(3)*x+ c(4)*z+ [var=1]

Then if I have missing values in my x or z's, I will get an error, but it is fine to have missing values for my y?

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

Re: Missing Values in the Signal Eq of the State Space Model

Postby EViews Glenn » Mon Jun 22, 2009 1:51 pm

Yes.
The state equations are the unobserved components in your model. We have to compute estimates of them somehow, and we can't if there are missings in their observed components. If it's a purely unobserved component, we can do the updating.

The Kalman Filter is designed for unobserveds in the signals, but we can't do anything if we can't update the state estimates.

dhanssen
Posts: 35
Joined: Sun Oct 12, 2008 11:03 am

Re: Missing Values in the Signal Eq of the State Space Model

Postby dhanssen » Mon Jun 22, 2009 1:59 pm

Great -- thanks so much for your help.

dhanssen
Posts: 35
Joined: Sun Oct 12, 2008 11:03 am

Re: Missing Values in the Signal Eq of the State Space Model

Postby dhanssen » Wed Jun 24, 2009 1:53 pm

One final follow-up question here. Is there a way to possibly tell the state to stay "as is" for observations where it encounters missing values ( i.e. some setting or coding that will accomplish this)? I am trying to avoid having to fill in these missing with an estimated value.

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

Re: Missing Values in the Signal Eq of the State Space Model

Postby startz » Wed Jun 24, 2009 2:06 pm

One final follow-up question here. Is there a way to possibly tell the state to stay "as is" for observations where it encounters missing values ( i.e. some setting or coding that will accomplish this)? I am trying to avoid having to fill in these missing with an estimated value.
Possibly...

Code: Select all

x = @nan(x,x(-1))
(so long as the first observation isn't missing.

dhanssen
Posts: 35
Joined: Sun Oct 12, 2008 11:03 am

Re: Missing Values in the Signal Eq of the State Space Model

Postby dhanssen » Wed Jun 24, 2009 4:29 pm

OKay, so I will just fill in the missing values with the most recent existing value. This is better than estimating it, so I'll use it. Thanks!

dhanssen
Posts: 35
Joined: Sun Oct 12, 2008 11:03 am

Re: Missing Values in the Signal Eq of the State Space Model

Postby dhanssen » Thu Jun 25, 2009 3:26 pm

I lied about the final follow - up, sorry. One more question -- I've filled in all the values now, per the suggestion above, and am getting the same error message. I know longer have any missing values, so is there any reason this could happen? I have a lot of zero values and times when the observations don't change too much, that's all I can think of. It's driving me crazy!

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

Re: Missing Values in the Signal Eq of the State Space Model

Postby startz » Thu Jun 25, 2009 3:35 pm

You might want to post your workfile. (And, of course, be sure your copy of EViews is uptodate.)

dhanssen
Posts: 35
Joined: Sun Oct 12, 2008 11:03 am

Re: Missing Values in the Signal Eq of the State Space Model

Postby dhanssen » Thu Jun 25, 2009 4:17 pm

Thank you! The workfile just contains an example of what is happening, the specification doesn't make sense right now. It is a panel data set. Please let me know if you need more information.
Attachments
drug_hdsku_29may09_sspace_trialpost.zip
(230.33 KiB) Downloaded 944 times

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

Re: Missing Values in the Signal Eq of the State Space Model

Postby startz » Thu Jun 25, 2009 5:03 pm

Thank you! The workfile just contains an example of what is happening, the specification doesn't make sense right now. It is a panel data set. Please let me know if you need more information.
The exogenous variables in the state equation seem to still have missing values.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests