Page 1 of 1

Eviews D functions

Posted: Sun May 14, 2017 9:25 am
by Eoghan
I have two variables RGDP and WAGES
I'm supposed to generate two new series D_RGDP and D_WAGES using eviews D functions:
D(X) = X-X(-1)
D(X) = X(t)-X(t-1)

t and t-1 are subscripts

what would be the commands to do this?
I get syntax error/(-1) not good when i try genr series d_rgdp = grgdp-grgdp(-1) for the first one
and I'm not sure at all how to generate the second one with my variables

Re: Eviews D functions

Posted: Sun May 14, 2017 9:41 am
by startz
I have two variables RGDP and WAGES
I'm supposed to generate two new series D_RGDP and D_WAGES using eviews D functions:
D(X) = X-X(-1)
D(X) = X(t)-X(t-1)

t and t-1 are subscripts

what would be the commands to do this?
I get syntax error/(-1) not good when i try genr series d_rgdp = grgdp-grgdp(-1) for the first one
and I'm not sure at all how to generate the second one with my variables
any of

Code: Select all

genr d_rgdp = grgdp-grgdp(-1) series d_rgdp = grgdp-grgdp(-1) series d_rgdp = d(grgdp)
Just don't say both genr and series.

Re: Eviews D functions

Posted: Sun May 14, 2017 9:47 am
by Eoghan
thanks, how would I then do the one with the D(X)=Xt-Xt-1 for wages

Re: Eviews D functions

Posted: Sun May 14, 2017 9:51 am
by startz
thanks, how would I then do the one with the D(X)=Xt-Xt-1 for wages

Code: Select all

series d_wages = d(wages)

Re: Eviews D functions

Posted: Sun May 14, 2017 9:55 am
by Eoghan
I thought they were two different commands?
or are they the same then?
D(X)=X-X(-1) verse D(X)=Xt-Xt-1

Re: Eviews D functions

Posted: Sun May 14, 2017 10:28 am
by startz
In EViews a number in parentheses gives a lag. You don't explicitly put in the t.

Re: Eviews D functions

Posted: Sun May 14, 2017 10:34 am
by Eoghan
ah ok, thank you!
Do you know how I would run 10 forecasts using 200 observations each
this is to help calculate MAPE and RMSE

Re: Eviews D functions

Posted: Sun May 14, 2017 10:50 am
by startz
That sort of thing depends on exactly what you're trying to do. You might want to read some of the online tutorials or EViews Illustrated to get a head start on how to use EViews tools.