Risk premiums and macroeconomic dynamics in a heterogeneous agent model