Code and data files for "The Role of Inventories and Capacity Utilization as Shock Absorbers"