* PS6.5 using data file DATA6-3 for Example 6.4 TIME 1948 SAMPLE 1948 1989 READ(data6-3) YEAR CONS DI * * The GENR command is used to generate the lagged values for consumption, * C1, and disposable income (DI) since it is assumed that the current * consumption behaviour is dependent on the previous periods' consumption * behaviour and the previous periods' disposable income position. * GENR C1=LAG(CONS) GENR LAGDI=LAG(DI) GENR DIFFI=DI-LAGDI PRINT YEAR CONS C1 DI DIFFI * * Note that in the above, the values for 1948 for C1 and DIFFI are wrong. * The first sample period must be dropped since t=1 is not defined for * the variables CONS(t-1) and DI(t-1). Therefore, the SAMPLE command is used * to change the sample range to begin with the observation for 1949 and to * end with the observation for 1989 in the following OLS regression. * SAMPLE 1949 1989 OLS CONS C1 DIFFI DELETE / ALL STOP