re-allocating data
Posted: 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..
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..