correlation between regression residuals

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

giotira
Posts: 13
Joined: Wed Mar 10, 2010 10:13 am

correlation between regression residuals

Postby giotira » Sun Oct 28, 2012 4:32 am

Hi

I am applying a meta-analysis method to an unbalanced panel dataset.
I need to calculate the average correlation between regression residuals.
so far I am doing the equation per each year, I create the residual series, I export it to excel and then I ll calculate manually the correlation between different years.
Does it exist a direct command in Eviews to do it?
given that is an unbalanced panel data (i.e. the observation among years are not the same) does the correlation of residuals is biased on the number of observation?
thank you

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

Re: correlation between regression residuals

Postby EViews Glenn » Mon Oct 29, 2012 12:45 pm

What I'd do is to create a pooled workfile and unstack the residuals into the pooled workfile. Then compute the correlation across the series in a group containing the unstacked series. You should be able to do it with a reshape command.

giotira
Posts: 13
Joined: Wed Mar 10, 2010 10:13 am

Re: correlation between regression residuals

Postby giotira » Wed Oct 31, 2012 4:35 am

Are you sure that the residuals of a pooled dataset that contains all the years are the same as the residuals of each year separately?


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests