Heinlein's Future History and the first of Anderson's several future histories could each be collected in two omnibus volumes. See here.
Each wrote three circular causality narratives. However, Anderson also wrote a time travel series that is complete in two long volumes and enough time travel short stories for a further collection.
Heinlein wrote more juvenile sf but Anderson wrote in several genres.
Heinlein's writing deteriorated badly whereas Anderson's remained creative and innovative into the twenty first century.