Hello,
I was trying to replicate using RATS the example 9.8 of Taylor's book Asset Price Dynamics, Volatility, and Prediction.
On this one he does a GJR-GARCH(1,1) in mean with a MA(1) regressor on the mean.
The data he uses are returns of SP100 so I called the series RETURNSP.
If I would like to do only a GJR-GARCH(1,1) I would use the following code:
GARCH(P=1,Q=1,ASYMMETRIC, method=bhhh,REGRESSORS) / RETURNSP
# %GARCHV
Then I was thinking maybe I can add the MA(1) term in the mean the following way.
boxjenkins(DEFINE=M1,ma=1) RETURNSP
and then adding to the GARCH formula model=M1
such as:
GARCH(P=1,Q=1,ASYMMETRIC, method=bhhh,REGRESSORS,model=M1) / RETURNSP
# %GARCHV
But then the GJR doesn't work.
Do I need to set up the GARCH with lower level code instead of by using the GARCH function?
Thanks
Andres
GJR(1,1)-MA(1)-M
GJR(1,1)-MA(1)-M
Last edited by Alepruz on Sat Dec 10, 2011 3:37 am, edited 1 time in total.
Re: GJR(1,1)-MA(1)-M
What you're looking for is the %MVGAVGE series. What you probably want is:Andres wrote:Hello,
I was trying to replicate the example 9.8 of Taylor's book Asset Price Dynamics, Volatility, and Prediction in RATS.
On this one he does a GJR-GARCH(1,1) in mean with a MA(1) regressor on the mean.
The data he uses are returns of SP100 so I called the series RETURNSP.
If I would like to do only a GJR-GARCH(1,1) I would use the following code:
GARCH(P=1,Q=1,ASYMMETRIC, method=bhhh,REGRESSORS) / RETURNSP
# %GARCHV
Then I was thinking maybe I can add the MA(1) term in the mean the following way.
boxjenkins(DEFINE=M1,ma=1) RETURNSP
and then adding to the GARCH formula model=M1
such as:
GARCH(P=1,Q=1,ASYMMETRIC, method=bhhh,REGRESSORS,model=M1) / RETURNSP
# %GARCHV
But then the GJR doesn't work.
Do I need to set up the GARCH with lower level code instead of by using the GARCH function?
Thanks
Andres
Code: Select all
garch(p=1,q=1,asymmetric, method=bhhh,regressors) / returnsp
# constant %garchv %mvgavge{1}