why there are two var?
Posted: Sat Sep 06, 2014 2:07 am
I found a paper’s code about stgarch which formula is ht=ω+αut-1^2+δ1*G1*(ht-1)+β*ht-1+λ0d0
and the writer writes the code like this
....
var=@recode(d1=1,omega(2)/(1-alpha(2)),omega(2)+delata*@gammainc(var(-1),gamma+alpha(2)*res(-1)^2)
var=@recode(d1=1,0.05,du(1)*dummy+omga(2)+delta(1)*@gammainc(var(-1),gamma(1))+alpha(2)*res(-1)^2)
the calculate log likelihood by using var....
and I do not understand know why there are two var equation...
I just start to learn Eviews and my English is not good, hope you can understand me....
Thank you everyone first
and the writer writes the code like this
....
var=@recode(d1=1,omega(2)/(1-alpha(2)),omega(2)+delata*@gammainc(var(-1),gamma+alpha(2)*res(-1)^2)
var=@recode(d1=1,0.05,du(1)*dummy+omga(2)+delta(1)*@gammainc(var(-1),gamma(1))+alpha(2)*res(-1)^2)
the calculate log likelihood by using var....
and I do not understand know why there are two var equation...
I just start to learn Eviews and my English is not good, hope you can understand me....
Thank you everyone first