Essays on Innovation, Patents, and Econometrics