Essays on Corporate Investment in Scientific Research