Determinants of Caste Membership