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

📄 egarchxcore.m

📁 经济类的实用的时间序列分析软件包
💻 M
字号:
function h=egarchcore(data, parameters, stdEstimate,p, o, q ,m , T,X);
% PURPOSE:
%     Core routing for egarch(use MEX file)
% 
% USAGE:
%     h=egarchcore(data, parameters, stdEstimate,p, q ,m , T);
% 
% INPUTS:
%     See egarch
% 
% OUTPUTS:
%     See egarch
% 
% 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(T,1);
h(1:m)=stdEstimate^2;

for t = (m + 1):T
    h(t) = exp(parameters' * [1 ; data(t-(1:p))./sqrt(h(t-(1:p))); abs(data(t-(1:o)))./sqrt(h(t-(1:o))); log(h(t-(1:q)))]+X(t-1));
    if h(t)<=0 | isnan(h(t)) | isinf(h(t))
        h(t)==stdEstimate*.00001;
    end
end

⌨️ 快捷键说明

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