The interaction of transmission intensity, mortality, and the economy: a retrospective analysis of the COVID-19 pandemic