Page 1 of 1

Lagged relationship creation

Posted: Wed Feb 10, 2016 9:00 am
by rookiestat
Hello,

I need to create formula like

x(1995)=x(1994)+y(change from 1994 to 1995), where I know y and x(1994) but I do not know x from 1995 and later, and I want it to be autoupdating

when I try to do it with

frml x=x(-1)+y

it gives me circular reference error.

Is there any other way to do it?

Thank you!

Re: Lagged relationship creation

Posted: Wed Feb 10, 2016 9:23 am
by EViews Gareth
There is not - the autoupdating requirement makes it impossible.

Re: Lagged relationship creation

Posted: Wed Feb 10, 2016 9:33 am
by rookiestat
Thank you for your answer!

What would be a solution if not autoupdating?

Re: Lagged relationship creation

Posted: Wed Feb 10, 2016 9:56 am
by EViews Gareth
series x=x(-1)+y

Re: Lagged relationship creation

Posted: Wed Feb 10, 2016 10:12 am
by startz
series x=x(-1)+y
But be sure to set the first value of x

Code: Select all

smpl 1994 1994 series x = 3.14159 smpl 1995 @last x = x(-1) + y

Re: Lagged relationship creation

Posted: Wed Feb 10, 2016 2:51 pm
by rookiestat
Thank you for your help, guys!