Correction for Standard Error

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

mwu888
Posts: 25
Joined: Sat Jul 09, 2011 5:49 pm

Correction for Standard Error

Postby mwu888 » Thu Jul 28, 2011 6:49 am

If I want to use a custom formulation for correcting standard error in using OLS regression, is this something I can accomplish in Eviews?

The formulation I have is in Matlab.

%compute standard errors
for indx = 1:N;
err=errv(:,indx);
inner = (x.*(err*ones(1,K)))'*(x.*(err*ones(1,K)))/T;

for jindx = (1:lags);
inneradd = (x(1:T-jindx,:).*(err(1:T-jindx)*ones(1,K)))'...
*(x(1+jindx:T,:).*(err(1+jindx:T)*ones(1,K)))/T;
inner = inner + (1-weight*jindx/(lags+1))*(inneradd + inneradd');
end;

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

Re: Correction for Standard Error

Postby EViews Gareth » Thu Jul 28, 2011 7:43 am

I'm not a Matlab expert, but it looks to me like it is just matrix algebra, which is something you should be able to compute using EViews' matrix language.

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

Re: Correction for Standard Error

Postby startz » Thu Jul 28, 2011 7:48 am

Alternatively, in EViews 7 you can send data and code to Matlab and use what you've already written.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests