Hello,
I am currently trying to develop a rolling GARCH program for my thesis. The forum has been helpful for the structure, however i am still trying to find out how i can export the coefficients of the conditional variance in a table after each roll.
scalar noobs=2870
scalar nw=200
matrix(noobs-nw,1) results
for !i=nw to noobs
smpl !i-nw !i
equation garch_n
garch_n.ARCH(1,1) dtsx60 @ tsx60vol
The results should be exported at this point into a table, but how???
!i=!i+50
next
I would also like to know wether it is correct or not to introduce volume as an endogenous variable in the conditional variance with @tsx60vol...
Thank you very much for your help!
Ulysse
Exporting GARCH condiitonal variance terms
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Re: Exporting GARCH condiitonal variance terms
You should first decide which parameters will be saved. Constructing a table is very easy in EViews. As an example, the following command will generate a 5x2 table and will name it as results:
The following code, on the other hand, will label the first column and then assign the related coefficient values to the second column:
Code: Select all
table(5,2) resultsCode: Select all
for !i=1 to 5
results(!i,1) = "coef" + @str(!i)
results(!i,2) = garch_n.@coefs(!i)
nextRe: Exporting GARCH condiitonal variance terms
Hello Trubador,
Thank you very much for your answer, this was just what i needed. Now i just need to introduce the standard errors in the table for each coeficient, do you know which command brings that to the table?
Thanks again for your answer!
Ulysse
Thank you very much for your answer, this was just what i needed. Now i just need to introduce the standard errors in the table for each coeficient, do you know which command brings that to the table?
Thanks again for your answer!
Ulysse
Re: Exporting GARCH condiitonal variance terms
Code: Select all
garch_n.@stderrs(!i)Who is online
Users browsing this forum: No registered users and 2 guests
