Three Essays On R&D: The Effect Of Competition And Regulation