Essays in Theoretical and Applied Econometrics