Variance Co-variance Matrix (Eviews8)

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

bjohn
Posts: 15
Joined: Fri Mar 11, 2011 8:13 am

Variance Co-variance Matrix (Eviews8)

Postby bjohn » Tue Jul 05, 2011 5:32 am

I have estimated an equation using OLS, and I can then view the variance-covariance matrix by clicking on the "View" button and then selecting the "variance-covariance" option.

However, when I try to use this in a programme I come across a problem. Specifically, when I run the line of code

matrix covar_mat = @cholesky(model.@coefcov)

I get the error message saying "Near singular matrix". This is confusing because I can see the variance-covariance matrix myself when I click on the object.

Is there a way to fix this?

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

Re: Variance Co-variance Matrix (Eviews8)

Postby EViews Gareth » Tue Jul 05, 2011 8:45 am

Could you provide the workfile?

bjohn
Posts: 15
Joined: Fri Mar 11, 2011 8:13 am

Re: Variance Co-variance Matrix (Eviews8)

Postby bjohn » Wed Jul 06, 2011 2:12 am

I can provide the workfile- can I upload it somewhere or should I send it via email?

PS: I notice that if I estimate with regular or HAC standard errors the problem doesn't exist, but if I estimate with white standard errors, I get the "near singular matrix" message.

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

Re: Variance Co-variance Matrix (Eviews8)

Postby EViews Gareth » Wed Jul 06, 2011 7:39 am

You can either attach it to a post here, or email it to support@eviews.com

bjohn
Posts: 15
Joined: Fri Mar 11, 2011 8:13 am

Re: Variance Co-variance Matrix (Eviews8)

Postby bjohn » Thu Jul 07, 2011 2:29 am

I have emailed the file.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests