Theoretical analysis of heterogeneous agent models and covid-19