Modeling Socioeconomic Evolution and Continuity in Ancient Egypt