Essays in Econometrics and Industrial Organization