A quick simple problem which is driving me nuts: I am trying to generate a quarterly time variable from 1954Q1 to now
When I implement some simple code in Stata, it just gives me an output that is 12 years earlier
My do-file:
Code:
cd "X:\My Downloads\X" clear import excel "X:\My Downloads\X\final data", sheet("Quarterly") firstrow gen quarter=tm(1954Q1)+_n-1 format quarter %tq tsset quarter
Code:
. format quarter %tq . tsset quarter time variable: quarter, 1942q1 to 2009q1 delta: 1 quarter
Have a nice day,
Tim
0 Response to Generating quarterly date column
Post a Comment