I am somewhat new to R and am currently stuck with the following problem:
I have two variables, $X$ and $Y$.
In the first step I do a GARCH(1,1) fit on $Y$. In the second step I would like to input $X$ as an exogenous variable into the model. Afterwards it would be useful if I could compare both models (the goodness of the respective fit) by AIC and BIC, and if possible save the residuals for both models.
As far as I know rugarch
would be the correct package to use. Could anybody perhaps be so kind to help me with the code - please :) This way I would have a working example and could build on it and learn from it.