re-allocating data

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

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

korea9659
Posts: 2
Joined: Wed Sep 23, 2015 12:50 am

re-allocating data

Postby korea9659 » Wed Sep 23, 2015 1:00 am

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..

korea9659
Posts: 2
Joined: Wed Sep 23, 2015 12:50 am

Re: re-allocating data

Postby korea9659 » Wed Sep 23, 2015 1:05 am

Here's the Eviews file with rGDP data that i am dealing with, just in case..
Attachments
HW1Q3.wf1
rGDP
(11.77 KiB) Downloaded 165 times

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: re-allocating data

Postby EViews Glenn » Wed Sep 23, 2015 11:55 am

Code: Select all

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

Code: Select all

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


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests