Missing Values in the Signal Eq of the State Space Model
Moderators: EViews Gareth, EViews Moderator
Missing Values in the Signal Eq of the State Space Model
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?
Re: Missing Values in the Signal Eq of the State Space Model
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
Not true, EViews should handle missings in the signal equation.
Re: Missing Values in the Signal Eq of the State Space Model
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!
" 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
It's the missings in the explanatory variables in the state equation that are causing problems.
Re: Missing Values in the Signal Eq of the State Space Model
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?
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
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.
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.
Re: Missing Values in the Signal Eq of the State Space Model
Great -- thanks so much for your help.
Re: Missing Values in the Signal Eq of the State Space Model
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
Possibly...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.
Code: Select all
x = @nan(x,x(-1))Re: Missing Values in the Signal Eq of the State Space Model
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!
Re: Missing Values in the Signal Eq of the State Space Model
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
You might want to post your workfile. (And, of course, be sure your copy of EViews is uptodate.)
Re: Missing Values in the Signal Eq of the State Space Model
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
The exogenous variables in the state equation seem to still have missing values.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.
Who is online
Users browsing this forum: No registered users and 2 guests
