* * Example 3.2 from page 33 * open data tablef2-1[1].txt calendar 1940 data(format=prn,org=columns) 1940:1 1950:1 year x c w * * Full sample regression * linreg c # constant x * * Skipping the war years. We need the SMPL to switch the 0-1 values in w. * linreg(smpl=1-w) c # constant x * * Allowing for a separate intercept for the war and non-war years. * linreg c # constant x w