Skip to content
Prev 14812 / 15274 Next

rmgarch DCC likelihood

Not sure I've understood you correctly. Here is what a reproducible 
example would look like:
##################
library(rmgarch)
data("dji30ret")
rX <- as.xts(dji30ret[,1:2])
colnames(rX)[1] <- "rDAT1"
colnames(rX)[2] <- "rDAT2"
ug_spec = ugarchspec()
ug_spec <- ugarchspec(mean.model=list(armaOrder=c(0,0),include.mean = 
FALSE))

ugfit1 = ugarchfit(spec = ug_spec, data = rX[,1])
ugfit2 = ugarchfit(spec = ug_spec, data = rX[,2])

uspec.n = multispec(replicate(2, ugarchspec(mean.model = list(armaOrder 
= c(0,0),include.mean = FALSE))))

# using scale=1 as in the internal call of multifit
multf = multifit(uspec.n, rX, fit.control=list(scale=1))
spec1 = dccspec(uspec = uspec.n, dccOrder = c(1, 1), distribution = 
'mvnorm')

rbind(likelihood(multf), cbind(likelihood(ugfit1), likelihood(ugfit2)))

          [,1]     [,2]
[1,] 13802.48 13959.91
[2,] 13802.48 13959.91

fit1 = dccfit(spec1, data = rX, fit.control = list(eval.se = 
TRUE),solver.control= list(trace=TRUE), fit = multf)

fit2 = dccfit(spec1, data = rX, fit.control = list(eval.se = 
TRUE),solver.control= list(trace=TRUE))
##################

Are you saying that these two are different?

 > cbind(likelihood(fit1),likelihood(fit2))
          [,1]     [,2]
[1,] 28153.17 28153.17


As to the "full log-likelihood" function, again I am unclear what it is 
you are stating. The function (log likelihood) to be optimized excludes 
constant values which are only included at the end to compose the full 
log likelihood.


Alexios
On 10/28/19 1:00 PM, Berk Koralp wrote: