This set of Matlab codes is for replication of empirical application in "Pooled Bewley Estimator of Long Run Relationships in Dynamic Heterogenous Panels" by A. Chudik, M.H. Pesaran and R. Smith, May 2021.

The main Matlab script to run is run_me_ea.m. This program loads the data (from files 'lpc.dat', 'lndi.dat', and 'dp.dat'), and computes the pooled Bewley and PMG (original and bias-corrected) estimators as outlined in the paper (Table 2). 