VAR-GARCH-M
-
economics2012
- Posts: 51
- Joined: Thu Jan 19, 2012 4:41 pm
Re: VAR-GARCH-M
Ooops I am sorry.
So , If I understood you correctly, I need to set zero the daily variances that are negative (i.e. GARCHP(1)(2), GARCHP(1)(4), GARCHP(1)(5), GARCHP(2)(2), GARCHP(2)(4)) correct? And the ones with positive signs, if they are significant it means we have daily effect. Am i right?
This is the code ans the sries is attached.
Again, I truly appreciate all your help.
So , If I understood you correctly, I need to set zero the daily variances that are negative (i.e. GARCHP(1)(2), GARCHP(1)(4), GARCHP(1)(5), GARCHP(2)(2), GARCHP(2)(4)) correct? And the ones with positive signs, if they are significant it means we have daily effect. Am i right?
This is the code ans the sries is attached.
Again, I truly appreciate all your help.
Last edited by economics2012 on Wed Jun 13, 2012 12:53 pm, edited 1 time in total.
-
economics2012
- Posts: 51
- Joined: Thu Jan 19, 2012 4:41 pm
Re: VAR-GARCH-M
Dear Tom,
I need to run the IRFs after estimating the GARCH model taking into account the day of the week effect.
How can I adjust this line in the code below?
compute hirf(i+1)=garchp(1)(3)*hirf(i)+garchp(1)(2)*%if(i==1,eps0(1)^2,hirf(i)
Many Thanks
I need to run the IRFs after estimating the GARCH model taking into account the day of the week effect.
How can I adjust this line in the code below?
compute hirf(i+1)=garchp(1)(3)*hirf(i)+garchp(1)(2)*%if(i==1,eps0(1)^2,hirf(i)
Many Thanks
Last edited by economics2012 on Wed Jun 13, 2012 12:54 pm, edited 1 time in total.
Re: VAR-GARCH-M
The deterministics don't affect the IRF's, so you just need to make sure you get the right slots for the two "GARCH" lag coefficients.
-
economics2012
- Posts: 51
- Joined: Thu Jan 19, 2012 4:41 pm
Re: VAR-GARCH-M
Hi Tom,
I am running this code for the IRFs
And getting this error
I am running this code for the IRFs
And getting this error
Last edited by economics2012 on Sun Jun 10, 2012 12:00 am, edited 1 time in total.
Re: VAR-GARCH-M
If you do Show Last Error on the Edit Menu, it will take you to the instruction which causes the problem, which is:
You have forum post underscore tags on the instruction.
Code: Select all
[u] compute hirf(i+1)=garchp(1)(7)*hirf(i)+garchp(1)(6)*%if(i==1,eps0(1)^2,hirf(i))[/u]-
economics2012
- Posts: 51
- Joined: Thu Jan 19, 2012 4:41 pm
Re: VAR-GARCH-M
Thanks a lot Tom, but I don't see what is wrong with :
compute hirf(i+1)=garchp(1)(7)*hirf(i)+garchp(1)(6)*%if(i==1,eps0(1)^2,hirf(i))
garchp(1)(7) and garchp(1)(6) stand for the GARCH lags!
compute hirf(i+1)=garchp(1)(7)*hirf(i)+garchp(1)(6)*%if(i==1,eps0(1)^2,hirf(i))
garchp(1)(7) and garchp(1)(6) stand for the GARCH lags!
Re: VAR-GARCH-M
There's nothing wrong with it. Your program had at the start of the instruction and at the end. Those will give syntax errors.
-
economics2012
- Posts: 51
- Joined: Thu Jan 19, 2012 4:41 pm
Re: VAR-GARCH-M
Hi Tom,
Using quarterly or monthly data, we usually include a full year of lags given that the primary effect of oil prices occurs at one year (based on the arguments by Hamilton and Herrera (2004)). Now, for daily data, since I have a large sample size (over 6000), the AIC/BIC criterion will do for selecting the sufficient number of lags in the mean equation. Can you please help me testing it in RATS? I have read Chapter 4 of Leamer's Specification Searches (Wiley, 1978) but still not sure how related to this.
Many thanks.
Using quarterly or monthly data, we usually include a full year of lags given that the primary effect of oil prices occurs at one year (based on the arguments by Hamilton and Herrera (2004)). Now, for daily data, since I have a large sample size (over 6000), the AIC/BIC criterion will do for selecting the sufficient number of lags in the mean equation. Can you please help me testing it in RATS? I have read Chapter 4 of Leamer's Specification Searches (Wiley, 1978) but still not sure how related to this.
Many thanks.
Re: VAR-GARCH-M
Just apply the standard @VARLagSelect to the model without any of the "M" terms. You're just trying to pick a defensible number of lags. If you tried to pick the number of lags based upon the full model, it would probably take a couple of days to estimate all the required models, and you would probably end up with the same answer.
-
economics2012
- Posts: 51
- Joined: Thu Jan 19, 2012 4:41 pm
Re: VAR-GARCH-M
Hi Tom,
I am running the IRFs for the GARCH(2,1) model with 7lags and I just want to make sure the line below is correct:
compute hirf(i+1)=garchp(1)(4)*hirf(i)+garchp(1)(3)*hirf(i)+garchp(1)(2)*%if(i==1,eps0(1)^2,hirf(i))
This is the code:
Thanks a lot
I am running the IRFs for the GARCH(2,1) model with 7lags and I just want to make sure the line below is correct:
compute hirf(i+1)=garchp(1)(4)*hirf(i)+garchp(1)(3)*hirf(i)+garchp(1)(2)*%if(i==1,eps0(1)^2,hirf(i))
This is the code:
Thanks a lot
Last edited by economics2012 on Fri Jun 22, 2012 10:15 pm, edited 1 time in total.
Re: VAR-GARCH-M
No. It's not allowing for the second lag on the H. The recursion changes to:
compute hirf(i+1)=garchp(1)(4)*hirf(i)+garchp(1)(3)*hirf(i)+garchp(1)(4)*%if(i==1,0.0,hirf(i-1))+garchp(1)(2)*%if(i==1,eps0(1)^2,hirf(i))
compute hirf(i+1)=garchp(1)(4)*hirf(i)+garchp(1)(3)*hirf(i)+garchp(1)(4)*%if(i==1,0.0,hirf(i-1))+garchp(1)(2)*%if(i==1,eps0(1)^2,hirf(i))
Re: VAR-GARCH-M
Take out the colored part of this.
compute hirf(i+1)=garchp(1)(4)*hirf(i)+garchp(1)(3)*hirf(i)+garchp(1)(4)*%if(i==1,0.0,hirf(i-1))+garchp(1)(2)*%if(i==1,eps0(1)^2,hirf(i))
compute hirf(i+1)=garchp(1)(4)*hirf(i)+garchp(1)(3)*hirf(i)+garchp(1)(4)*%if(i==1,0.0,hirf(i-1))+garchp(1)(2)*%if(i==1,eps0(1)^2,hirf(i))
-
economics2012
- Posts: 51
- Joined: Thu Jan 19, 2012 4:41 pm
Re: VAR-GARCH-M
Hi,
I am trying to check for the effect of uncertainty in oil price on stock returns for periods t and (t-1), and I need to get psi1 and psi2 of equation one in the attached below model.
Can you please help me adjust the model accordingly?
Your help is highly appreciated in this regard.
I am trying to check for the effect of uncertainty in oil price on stock returns for periods t and (t-1), and I need to get psi1 and psi2 of equation one in the attached below model.
Can you please help me adjust the model accordingly?
Your help is highly appreciated in this regard.
Last edited by economics2012 on Tue Apr 23, 2013 1:44 pm, edited 2 times in total.
Re: VAR-GARCH-M
Isn't the only change to add the lag of sqrthoil to the model?
-
economics2012
- Posts: 51
- Joined: Thu Jan 19, 2012 4:41 pm
Re: VAR-GARCH-M
Correct, but I am not sure how to add the lag of sqrthoil to the model.
Can you please help me?
Thanks a lot
Can you please help me?
Thanks a lot