* * Example 11.7 from page 379 * open data earns.raw calendar 1947 data(format=free,org=columns) 1947:1 1987:1 year wkearns wkhours outphr hrwage lhrwage loutphr time ghrwage goutphr ghrwge_1 goutph_1 goutph_2 lwkhours * linreg lhrwage # constant loutphr time * * These compute the autocorrelations of the detrended data as cited in the * example. (The autocorrelations are very slightly different because there are * several different formulas for estimating them). * linreg lhrwage # constant time disp "First Order Autocorrelation of Detrended log(wage)" %rho linreg loutphr # constant time disp "First Order Autocorrelation of Detrended log(output/hour)" %rho * set dwage = lhrwage-lhrwage{1} set doutput = loutphr-loutphr{1} linreg dwage # constant doutput