Is there a simple way to extract the X matrix from a reg?

For questions regarding programming in the EViews programming language.

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

abossie
Posts: 15
Joined: Tue Jan 31, 2012 10:54 am

Is there a simple way to extract the X matrix from a reg?

Postby abossie » Sun Jul 21, 2013 6:19 am

Basically, I need to calculate E(xx') so that I can get confidence intervals for a structural break. I know I can group the variables then convert that to a matrix but this involves several steps and suspect it will give me trouble if I try to change the number of variables. Anyway I was wondering (hoping!?) there would be something like an @ command for this.

I'm using version 7.2

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

Is there a simple way to extract the X matrix from a reg?

Postby EViews Gareth » Sun Jul 21, 2013 8:19 am

Make regressor group then convert to matrix is the only way.

Of course if you're just using least squares you could work with the covariance matrix to get X'X.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests