Inequality of educational opportunity (IEO) depends on two separate mechanisms: children from advantaged social backgrounds perform better at school-primary effects-and tend more than others to choose to continue in education-secondary effects. IEO in the transition from compulsory to academic...