The impact of stock-outs on whether, how much and what to buy