Ancestral ecological endowments and missing women