A method for solving and estimating heterogeneous agent macro models · Study