Page 1 of 1

how to refer to last coefficient inside string variable

Posted: Mon Nov 09, 2015 10:14 am
by YK_Econ
Hi,

this is the code that i want to use

Code: Select all

scalar effect_{%dpv}{!eqnr}{!h} = effect_{%dpv}{!eqnr}{!h-1} + {%dpv}{!eqnr}.@coef(!h)
However, the h-1 does not work. How can i come across it?

best
Yk

Re: how to refer to last coefficient inside string variable

Posted: Mon Nov 09, 2015 10:17 am
by EViews Gareth

Code: Select all

!hm1 = !h-1 scalar effect_{%dpv}{!eqnr}{!h} = effect_{%dpv}{!eqnr}{!hm1} + {%dpv}{!eqnr}.@coef(!h)