Theoretical formulations of dynamic heterogeneous-agent economies typically include a distribution as an aggregate state variable. This paper introduces a method for computing equilibrium of these models by including a distribution directly as a state variable if it is finite-dimensional or a...