Skip to content
Prev 13162 / 15274 Next

help with ugarchsim error

This is likely related to the standardized data you are passing to the 
simulation function.

For instance, this _minimally reproducible example_ produces no problems:

data(sp500ret)
fit = ugarchfit(ugarchspec(), sp500ret)
simz = rnorm(1000000)

sim = ugarchsim(fit, n.sim=1000000, m.sim=1,
startMethod="sample", n.start=0, custom.dist=list(name="sample",
distfit=matrix(simz, ncol=1)))

So you need to check the values of your "SPD.sim.1" i.e. that they 
contain no NA's, Inf etc.

Alexios
On 25/02/2015 18:28, Gareth McEwan wrote: