xdcclarge (version 0.1.0)

dcc_gradient: This functions calculates numerical gradient of log-likelihood of DCC-GARCH model.

Description

This functions calculates numerical gradient of log-likelihood of DCC-GARCH model.

Usage

dcc_gradient(param, ht, residuals, stdresids, uncR, d = 1e-05)

Arguments

param

DCC-GARCH parameters(alpha,beta)

ht

matrix of conditional variance vectors (T by N)

residuals

matrix of residual(de-mean) returns (T by N)

stdresids

matrix of standrdized(De-GARCH) residual returns (T by N)

uncR

unconditional correlation matrix of stdresids (N by N)

d

(log-lik(x+d) - log-lik(x))/d

Value

numerical gradient of log-likelihood of DCC-GARCH model (vector)