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;
Correction for Standard Error
Moderators: EViews Gareth, EViews Moderator
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Correction for Standard Error
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
Alternatively, in EViews 7 you can send data and code to Matlab and use what you've already written.
Who is online
Users browsing this forum: No registered users and 2 guests
