assymteric in BEKK model
Posted: Thu Apr 26, 2012 2:45 am
Dear Sir,
I am building an assymteric BEKK model with the following. I would like to have the probability of negative residuals using the following codes below. The following paper: Trading with asymmetric volaility spillovers by angel pardo & hipolit torro adapted a porbability of 0.5. Their paper indicated that assymetry coefficient is 0.50 whilst the assymetry cross-coefficient is 0.5*0.5. I don't know how it was built into the folllwing code or it hads already been done?
Hope to get clarification. Many thanks.
nonlin(parmset=distparms) nu
function VTSign v s
type vector v s VTSign
*
local integer i
*
dim VTSign(%rows(v))
ewise VTSign(i)=%if(%sign(v(i))==s(i),v(i),0.0)
end
*
compute signs=||-1.,-1.||
declare series[symm] uus
gset uus gstart gend = %zeros(n,n)
*
frml logl = $
hx = hf(t) , $
%do(i,1,n,u(i)=resid(i)) , $
ux = %xt(u,t), $
h(t)=hx, uu(t)=%outerxx(ux), $
uus(t)= %outerxx(VTSign(ux,signs)), $
%logtdensity(hx,ux,nu)
I am building an assymteric BEKK model with the following. I would like to have the probability of negative residuals using the following codes below. The following paper: Trading with asymmetric volaility spillovers by angel pardo & hipolit torro adapted a porbability of 0.5. Their paper indicated that assymetry coefficient is 0.50 whilst the assymetry cross-coefficient is 0.5*0.5. I don't know how it was built into the folllwing code or it hads already been done?
Hope to get clarification. Many thanks.
nonlin(parmset=distparms) nu
function VTSign v s
type vector v s VTSign
*
local integer i
*
dim VTSign(%rows(v))
ewise VTSign(i)=%if(%sign(v(i))==s(i),v(i),0.0)
end
*
compute signs=||-1.,-1.||
declare series[symm] uus
gset uus gstart gend = %zeros(n,n)
*
frml logl = $
hx = hf(t) , $
%do(i,1,n,u(i)=resid(i)) , $
ux = %xt(u,t), $
h(t)=hx, uu(t)=%outerxx(ux), $
uus(t)= %outerxx(VTSign(ux,signs)), $
%logtdensity(hx,ux,nu)