Code for: Investor sentiment and advertising expenditure - Sharma, Piyush (Mendeley, 2018)