Page 1 of 1

re-allocating data

Posted: Wed Sep 23, 2015 1:00 am
by korea9659
I am trying to re-allocate my data, here is my HW question..
Generate two time trends TIMEt = t and TIMENt = t - 1. That is, TIME = 1 and TIMEN = 0 in 1960Q1, TIME = 2 and TIMEN = 1 in 1960Q2. and so on.
Run a regression of yt on TIMEt and TIMENt.

I am stuck in generating new variable, re-allocating data of 1960Q1 to 1960Q0, 1960Q2 to 1960Q1, 1960Q3 to 1960Q2, and so on..

Re: re-allocating data

Posted: Wed Sep 23, 2015 1:05 am
by korea9659
Here's the Eviews file with rGDP data that i am dealing with, just in case..

Re: re-allocating data

Posted: Wed Sep 23, 2015 11:55 am
by EViews Glenn

Code: Select all

series time = @trend+1 series timen = @trend
or

Code: Select all

series time = @trend+1 series timen = time(-1)