Essays on the determinants of student choices and educational outcomes