1
+ # Which solver to use
2
+ slvr <- " hybrid"
3
+ slvr.ctrl <- list (n.restarts = 3 , parallel = TRUE , pkg = " multicore" , cores = 4 )
4
+
5
+
6
+
7
+ # All models have an AR(1) process to model the mean
8
+
9
+ # ######################################## GARCH(1,1) ###################################
10
+ # ## GARCH(1,1) with normal innovations
11
+ garch.spec.norm <- ugarchspec(variance.model = list (model = " sGARCH" , garchOrder = c(1 ,1 )),
12
+ mean.model = list (armaOrder = c(1 ,0 )),
13
+ distribution.model = " norm" )
14
+
15
+ # ## GARCH(1,1) with t innovations, 4 degrees of freedom
16
+ garch.spec.std <- ugarchspec(variance.model = list (model = " sGARCH" , garchOrder = c(1 ,1 )),
17
+ mean.model = list (armaOrder = c(1 ,0 )),
18
+ distribution.model = " std" ,
19
+ fixed.pars = list (shape = df ))
20
+
21
+ # ## GARCH(1,1) with skew-t innovations
22
+ garch.spec.sstd <- ugarchspec(variance.model = list (model = " sGARCH" , garchOrder = c(1 ,1 )),
23
+ mean.model = list (armaOrder = c(1 ,0 )),
24
+ distribution.model = " sstd" ,
25
+ fixed.pars = list (shape = df ))
26
+ # ########################################################################################
27
+
28
+
29
+ # ######################################## GJR-GARCH(1,1) ##############################
30
+ # ## GJR-GARCH(1,1) with normal innovations
31
+ gjr.spec.norm <- ugarchspec(variance.model = list (model = " gjrGARCH" , garchOrder = c(1 ,1 )),
32
+ mean.model = list (armaOrder = c(1 ,0 )),
33
+ distribution.model = " norm" )
34
+
35
+ # ## GJR-GARCH(1,1) with t innovations
36
+ gjr.spec.std <- ugarchspec(variance.model = list (model = " gjrGARCH" , garchOrder = c(1 ,1 )),
37
+ mean.model = list (armaOrder = c(1 ,0 )),
38
+ distribution.model = " std" ,
39
+ fixed.pars = list (shape = df ))
40
+
41
+ # ########################################################################################
42
+
43
+ # ######################################## FAMILY-GARCH(1,1) ###########################
44
+ # ## family-GARCH(1,1) with normal innovations
45
+ fam.spec.norm <- ugarchspec(variance.model = list (model = " fGARCH" , garchOrder = c(1 ,1 ), submodel = " ALLGARCH" ),
46
+ mean.model = list (armaOrder = c(1 ,0 )),
47
+ distribution.model = " norm" )
48
+
49
+ fam.spec.std <- ugarchspec(variance.model = list (model = " fGARCH" , garchOrder = c(1 ,1 ), submodel = " ALLGARCH" ),
50
+ mean.model = list (armaOrder = c(1 ,0 )),
51
+ distribution.model = " std" ,
52
+ fixed.pars = list (shape = df ))
53
+ # ########################################################################################
54
+
55
+ # ######################################## component-GARCH(1,1) ########################
56
+ cs.spec.norm <- ugarchspec(variance.model = list (model = " csGARCH" , garchOrder = c(1 ,1 )),
57
+ mean.model = list (armaOrder = c(1 ,0 )),
58
+ distribution.model = " norm" )
59
+
60
+ cs.spec.std <- ugarchspec(variance.model = list (model = " csGARCH" , garchOrder = c(1 ,1 )),
61
+ mean.model = list (armaOrder = c(1 ,0 )),
62
+ distribution.model = " std" ,
63
+ fixed.pars = list (shape = df ))
64
+ # ########################################################################################
0 commit comments