Measuring the macroeconomic impact of uncertainty