Essays in Panel Data Econometrics