Skip to content
Prev 10662 / 15274 Next

A question about function: dccsim in rmgarch package

Hi ZHU Cai,

The returned object is of class "DCCsim" and more generally "mGARCHsim". 
All mGARCHsim classes have an "msim" and "model" slot:
slotNames(dccsim)
[1] "msim"  "model"

names(dccsim at msim)
[1] "simH"   "simR"   "simQ"   "simX"   "simZ"   "simRes" "rseed"

- simH (conditional covariance) is a list of 3d arrays of length m.sim 
and array length no.assets x no.assets x n.sim

- simR (conditional correlation) is a list of 3d arrays of length m.sim 
and array length no.assets x no.assets x n.sim

- simQ (conditional correlation DCC proxy process) is a list of 3d 
arrays of length m.sim and array length no.assets x no.assets x n.sim

- simX (conditional mean)  is a list of matrices of length m.sim and 
dimensions n.sim x no.assets.

Therefore, to obtain the m.sim x no.assets matrix of the simulated 
1-ahead conditional mean:

t(sapply(dccsim at msim$simX, FUN = function(x) x))


Regards,
Alexios
On 03/09/2012 09:33, cai zhu wrote: