why would I get missing values in residual series?

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

Fregensburg
Posts: 38
Joined: Tue Jan 21, 2014 4:04 am

why would I get missing values in residual series?

Postby Fregensburg » Mon Jun 23, 2014 9:07 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13583
Joined: Tue Sep 16, 2008 5:38 pm

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

Postby EViews Gareth » Mon Jun 23, 2014 9:23 am

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.

Fregensburg
Posts: 38
Joined: Tue Jan 21, 2014 4:04 am

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

Postby Fregensburg » Mon Jun 23, 2014 9:28 am

Here it is
Attachments
nonsense.prg
(289 Bytes) Downloaded 508 times
wkst.wf1
(517.38 KiB) Downloaded 481 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13583
Joined: Tue Sep 16, 2008 5:38 pm

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

Postby EViews Gareth » Mon Jun 23, 2014 9:34 am

Your independent variables has lots and lots of NAs.

Fregensburg
Posts: 38
Joined: Tue Jan 21, 2014 4:04 am

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

Postby Fregensburg » Tue Jun 24, 2014 1:04 am

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).

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

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

Postby startz » Tue Jun 24, 2014 6:15 am

You're taking the log of a negative number.

Fregensburg
Posts: 38
Joined: Tue Jan 21, 2014 4:04 am

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

Postby Fregensburg » Tue Jun 24, 2014 6:59 am

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!


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests