⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 garchinmeancore.m

📁 经济类的实用的时间序列分析软件包
💻 M
字号:
function [e,h,SSE]=garchinmeancore(regressand,he,stdEstimate,map,garchconst,garchimp,archp,garchp,m,ma,p,q,T);
% PURPOSE:
%     Core routine of garch in mean. Use the MEX file.  
% 
% USAGE:
%     [e,h,SSE]=garchinmeancore(regressand,he,stdEstimate,map,garchconst,garchimp,archp,garchp,m,ma,p,q,T);
% 
% INPUTS:
%     See garchinmeanlikelihood
% 
% OUTPUTS:
%     See garchinmeanlikelihood
% 
% COMMENTS:
%     Helper function part of UCSD_GARCH toolbox. Used if you do not use the MEX file.
%     You should use the MEX file.
% 
% 
% Author: Kevin Sheppard
% kevin.sheppard@economics.ox.ac.uk
% Revision: 2    Date: 12/31/2001

h=zeros(size(regressand));
e=zeros(size(regressand));
h(1:m+1)=stdEstimate^2;
for t=m+1:T
e(t)= regressand(t) - map'*e(t-1:-1:t-ma) - garchimp*h(t)^(0.5);
he(t)=e(t);
h(t+1)=garchconst+archp'*he(t:-1:t-p+1).^2+garchp'*h(t:-1:t-q+1);
end
t=m+1:T;
SSE=sum(e(t).^2./h(t));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -