Page 1 of 1

computing the index

Posted: Fri Oct 23, 2009 5:46 am
by soungl
Hi, I'm wondering how to create a series with the following equation in EViews.

X(t) = X(t-1) * (200+Y(t))/(200-Y(t)), setting the intital value of X(1) = 100.

Dan

Re: computing the index

Posted: Fri Oct 23, 2009 6:55 am
by startz
First create the series X.

Code: Select all

series x
Then open it in a spreadsheet view and type 100 as the first entry. Then give the commands

Code: Select all

smpl 2 @last x = x(-1)*(200+y)/(200-y)

Re: computing the index

Posted: Fri Oct 23, 2009 8:14 am
by EViews Gareth
alternatively, just type the following commands

Code: Select all

series x=100 smpl 2 @last series x = x(-1)*(200+y)/(200-y) smpl @all