Title: Market opportunities, genetic endowments and the intrafamily distribution of resources