how to refer to last coefficient inside string variable

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

YK_Econ
Posts: 36
Joined: Wed Jan 28, 2015 8:34 am

how to refer to last coefficient inside string variable

Postby YK_Econ » Mon Nov 09, 2015 10:14 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: how to refer to last coefficient inside string variable

Postby EViews Gareth » Mon Nov 09, 2015 10:17 am

Code: Select all

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


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests