Matlab files for “Trade Spends and Profitability of Promotions”