US companies and (to an extent) the economy have proved resilient this year