Page 1 of 1

why would I get missing values in residual series?

Posted: Mon Jun 23, 2014 9:07 am
by Fregensburg
Dear experts,

After running a simple OLS regression, I looked at the residuals as I needed them for something else, and the series turns out to have long stretches of empty observations (as well as actual values) across the sample. Both left and right hand side variable in the regression do not have any missing values, so this shouldn't happen. Any suggestion on what the issue is?

Many thanks

Re: why would I get missing values in residual series?

Posted: Mon Jun 23, 2014 9:23 am
by EViews Gareth
Any observation included in the estimation will have non-NA values. Any observation not included in the estimation will have NA values.

Without seeing the workfile, hard to give more information than that.

Re: why would I get missing values in residual series?

Posted: Mon Jun 23, 2014 9:28 am
by Fregensburg
Here it is

Re: why would I get missing values in residual series?

Posted: Mon Jun 23, 2014 9:34 am
by EViews Gareth
Your independent variables has lots and lots of NAs.

Re: why would I get missing values in residual series?

Posted: Tue Jun 24, 2014 1:04 am
by Fregensburg
Gareth,

I don't quite understand. When I look at the rhs variables _12mf and wtispot, there is a full data set from the start of the sample, 1/02/1990, through to 7/24/2013. However, the residuals turn out to have long stretches of NA values even when there is data for the independent variables.


(data was missing between 7/24/2013 to mid 2014. I've just shortened the workfile to include only available data, values for residuals still turn up on/off NA).

Re: why would I get missing values in residual series?

Posted: Tue Jun 24, 2014 6:15 am
by startz
You're taking the log of a negative number.

Re: why would I get missing values in residual series?

Posted: Tue Jun 24, 2014 6:59 am
by Fregensburg
ah. Completely overlooked that. Generally eviews alerts you with an error message whenever one's trying to take logs of negative values.
Thanks a lot!