套期保值最优比的模型运算,BEKK和DCC GARCH

求教,在matlab下怎么做BEKK-GARCH和DCC-GARCH,我已经找到这两个模型的M函数了,但是还是不会用,本人在做套期保值模型最优比实验,我尝试用现货和期货收益率作为data,但是运行出来感觉不对,本人对matlab也是初学者,希望高人赐教,感激不尽!
function [parameters, loglikelihood, Ht,likelihoods, stdresid, stderrors, A, B, scores] = full_bekk_mvgarch(data,p,q,BEKKoptions)
% INPUTS:
% data - A t by k matrix of zero meanresiduals
% p - The lag length of the innovationprocess
% q - The lag length of the AR process
% options - (optional) Options for theoptimization(fminunc)

[parameters, loglikelihood, Ht, Qt, stdresid, likelihoods, stderrors, A,B, jointscores]=dcc_mvgarch(data,dccP,dccQ,archP,garchQ)
data = A zero mean t by k vector of residuals from some filtration
% dccP = The lag length of the innovation term in the DCC estimator
% dccQ = The lag length of the lagged correlation matrices in the DCC estimator
% archP = One of three things: Empty in which case a 1 innovation model is estimated for

”%“后面的代码都是不被matlab执行的,你要做的就是把模型设定部分和估计部分的参数设定一下就ok了
温馨提示:答案为网友推荐,仅供参考