Household determinants of educational attainment and enrollment