Function @residcov

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

farrel
Posts: 108
Joined: Thu Sep 18, 2008 11:13 pm

Function @residcov

Postby farrel » Fri Oct 28, 2016 3:50 am

Hi all,

I just curious why estimates of function @residcov differ from directly estimating covariance of residuals from drop menu? What is formula behind function @residcov?
Intuitively, I would say that estimates of function @residcov should be the same as if I would look at covariance analysis.

Namely, I have VAR model. I made covariance matrix from VAR model using @residcov. To check this result, then, I made group of residuals from VAR model, pressed VIEW, COVARIANCE ANALYSIS, Type: ORDINARY, checked COVARIANCE and pressed OK.
Matrix from @residcov differs from matrix obtained using COVARIANCE ANALYSIS (difference is not big).
But question is WHY????

Andrei

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

Re: Function @residcov

Postby EViews Gareth » Fri Oct 28, 2016 8:07 am

Different degrees of freedom. When you make a group of residuals, they are just series, EViews has no idea where they came from, so does the covariance analysis with standard dof. When you do it from within the VAR, EViews knows the residuals are from estimates and adjusts the dof accordingly.
Follow us on Twitter @IHSEViews

christine
Posts: 2
Joined: Sun Feb 26, 2017 8:16 pm

Re: Function @residcov

Postby christine » Sun Feb 26, 2017 9:33 pm

Hi there, could you please be more specific re the adjustment with dof that you are referring to above? I would assume that the covariance is calculated as (res'res)/(#observations-#parameters), but this doesn't match up with what Eviews gives me. Thanks!

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

Re: Function @residcov

Postby EViews Glenn » Fri Mar 03, 2017 6:08 pm

Just to follow up, it's divided by the the d.f. where the correction uses the number of parameters in the individual equation of the VAR. This allows the computation to line up the diagonals with what you would get from equation by equation estimation. So 3 variable var with 4 lags and the constant would correct using #parameters=13.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 69 guests