Essays in Industrial Organization and Econometrics