computing the index

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

soungl
Posts: 7
Joined: Fri Oct 23, 2009 3:13 am

computing the index

Postby soungl » Fri Oct 23, 2009 5:46 am

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

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: computing the index

Postby startz » Fri Oct 23, 2009 6:55 am

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)

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

Re: computing the index

Postby EViews Gareth » Fri Oct 23, 2009 8:14 am

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
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 14 guests