I cannot understand why the coefficient on weight is the same in reg and areg in A), but they are not the same in B).
Code:
sysuse auto, clear gen car_id = _n * A) reg price weight length i.mpg areg price weight length, absorb(mpg) * B) reg price weight length i.car_id areg price weight length, absorb(car_id)
Comment