Skip to content
Prev 14572 / 15274 Next

rugarch gives two different results based on the same model…how is that even possible?

I did use the seed you provided.

Use the following code for estimation:

fit <- ugarchfit(spec = spec, data = as.matrix(temp$y),solver = "nlminb", fit.control=list(scale=1))

model_maker(var1)
         Estimate  Std. Error     t value     Pr(>|t|)
mu     -7.3998577  0.69086641 -10.7109821 0.0000000000
ar1     0.3387323  0.08280162   4.0908900 0.0000429721
ar2    -0.8834201  0.06569477 -13.4473414 0.0000000000
ma1    -0.2902069  0.08598589  -3.3750525 0.0007380161
ma2     0.8660807  0.06778418  12.7770320 0.0000000000
mxreg1  1.6782992  0.12769644  13.1428825 0.0000000000
mxreg2  2.5225382  0.04292728  58.7630625 0.0000000000
omega  12.0047145  0.82986864  14.4658010 0.0000000000
alpha1  0.0000000  0.07358520   0.0000000 1.0000000000
shape  63.0103309 98.49188643   0.6397515 0.5223341761

model_maker(var2)
         Estimate  Std. Error     t value     Pr(>|t|)
mu     -7.3998549  0.69086651 -10.7109764 0.000000e+00
ar1     0.3387334  0.08280150   4.0909088 4.296861e-05
ar2    -0.8834206  0.06569433 -13.4474406 0.000000e+00
ma1    -0.2902081  0.08598562  -3.3750776 7.379487e-04
ma2     0.8660811  0.06778412  12.7770487 0.000000e+00
mxreg1  2.5225383  0.04292728  58.7630642 0.000000e+00
mxreg2  1.6782987  0.12769640  13.1428817 0.000000e+00
omega  12.0047142  0.82992363  14.4648419 0.000000e+00
alpha1  0.0000000  0.07359329   0.0000000 1.000000e+00
shape  63.0105962 98.49368444   0.6397425 5.223400e-01


I can?t see any ?significant? differences, can you?
It?s completely related to the optimization/starting parameters. The ?scale? is documented and not on by default (perhaps it should be).

Alexios