garchset / garchget to new functions

12 views (last 30 days)
art.anna
art.anna on 20 Aug 2017
Answered: Elizabeth Reese on 23 Aug 2017
Good day,
I am trying to adapt the old functions from Econemtrics Toolbox of 2013/14 to the new one. Even though I found the following link with some instructions ( https://uk.mathworks.com/help/econ/converting-from-garch-functions-to-models.html ) I can't manage to adapt it to my case.
I am estimating GJR(1,1). The idea is that the code needs to add volatility shock to the previously estimated model (that is why it uses garchget and multiplies the volatility constant by a shock).
for i=1:nEquities
spec(i)=garchset(spec(i),'k',garchget(spec(i), 'k')* VolaShock(i,1)^2); % apply stress input to GARCH volatility constants
end
An then it simulates the output using garchsim:
for i = 1:nEquities
[~, ~, ...
StressedsimulatedReturns(:,:,i)] = garchsim(spec(i), horizon, nPaths, Z(:,:,i), ...
[], [], preResidual(i), preSigma(i), ...
preReturn(i));
end
I understand that now the functions to use are garch / estimate / simulate but I don't understand how to adapt the syntax... Any help / advice is appreciated.

Answers (1)

Elizabeth Reese
Elizabeth Reese on 23 Aug 2017
In order to add all of the parameters you are using, you can consider making a GJR object using the "gjr" function, and then specify that as the "Variance" property in the "arima" constructor and estimate the model. You can set the 'K' value based on the third row of the chart you mentioned. Then, you can simulate the ARIMA model using the Name-Value pairings that map to the additional inputs you were using for "garchsim".

Categories

Find more on Conditional Variance Models in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!