EdQual Working Paper No. 24. Which in and out of school factors explain variations in learning across different socioeconomic groups? Findings from South Africa.