*==============================================================================* * Advanced Applied Econometrics * Jakub Muck * Meeting 9 * Panel data * 1. Basic data processing with panel data webuse grunfeld xtset company year xtdescribe * 2. Pooled regression reg invest kstock mvalue estimates store pooled * + clustered se reg invest kstock mvalue, vce(cluster company) estimates store pooled_cluster * 3. FE xtreg invest kstock mvalue, fe estimates store fe * 4. RE xtreg invest kstock mvalue estimates store re xttest0 * Summary estimates table pooled* fe re , b se p hausman fe re * 5. Hausman-Taylor exmample clear all webuse psidextract * 5.1 RE xtreg lwage wks south smsa ms exp exp2 occ ind union fem blk ed, re estimates store re *5.2 HT estimator xthtaylor lwage wks south smsa ms exp exp2 occ ind union fem blk ed, endog( ed) estimates store ht estimates table re ht, b se p hausman ht re