Bibliographical references Agasisti, T., F. Avvisati, F. Borgonovi et al. (2021) What School Factors are Associated with the Success of Socio-Economically Disadvantaged Students? An Empirical Investigation Using PISA Data. Soc Indic Res 157, 749–781. https://doi.org/10.1007/s11205-021-02668-w . Basu, S. (2018) Age-of-Arrival Effects on the Education of Immigrant Children: A Sibling Study. Journal of Family and Economic Issues, 39, 474–493. https://doi.org/10.1007/s10834-018-9569-4 . Betts, J.R., (2011), “The Economics of Tracking in Education”, in Hanushek, E.A., S. Machin and L. Woessmann (Eds.), Handbook of the Economics Of Education, Volume 3, Amsterdam: North Holland, pp. 341-381. Brunello, G., and D. Checchi (2007) Does School Tracking Affect Equality of Opportunity? New International Evidence. Economic Policy, 22(52), 781–861. http://www.jstor.org/stable/4502215. Brunello, G. and M. De Paola (2017) School segregation of immigrants and its effects on educational outcomes in Europe, European Commission, Directorate-General for Education, Youth, Sport and Culture. https://data.europa.eu/doi/10.2766/045520 . Cebolla-Boado, H. and L. Garrido-Medina (2011) The Impact of Immigrant Concentration in Spanish Schools: School, Class, and Composition Effects, European Sociological Review, Volume 27, Issue 5, October, Pages 606–623, https://doi.org/10.1093/esr/jcq024. Cebolla-Boado, H., and M. Fernández-Reino (2021) Migrant Concentration in Schools and Students’ Performance: Does It Matter When Migrants Speak the Same Language as Nonmigrant Students? American Behavioral Scientist, 65(9), 1206–1221. https://doi.org/10.1177/0002764221996776 . Choi, A. y J. Calero (2012) Rendimiento académico y titularidad del centro en España, Profesorado, Revista de curriculum y formación de profesorado, Vol. 16, Nº 3, (sep.-dic.). Diemer, A. (2022) Endogenous peer effects in diverse friendship networks: Evidence from Swedish classrooms, Economics of Education Review, Volume 89, 102269. https://doi.org/10.1016/j.econedurev.2022.102269. Duflo, E., P. Dupas, and M. Kremer (2011) “Peer Effects, Teacher Incentives, and the Impact of Tracking: Evidence from a Randomized Evaluation in Kenya”, American Economic Review 101.5: 1739–1774. http://dx.doi.org/10.1257/aer.101.5.1739 . Entorf, H. and M. Lauk (2008) Peer Effects, Social Multipliers and Migrants at School: An International Comparison, Journal of Ethnic and Migration Studies, 34:4, 633-654, DOI: 10.1080/13691830801961639 . Hanushek, E.A. and L. Wößmann (2006) Does Educational Tracking Affect Performance And Inequality? Differencesin-Differences Evidence Across Countries, The Economic Journal, 116 (March), pp. 63–76. Hong, G. and S.W. Raudenbush (2005) Effects of Kindergarten Retention Policy on Children’s Cognitive Growth in Reading and Mathematics. Educational Evaluation and Policy Analysis, 27(3), 205–224. https://doi.org/10.3102/01623737027003205. Hoxby, C. (2000) Peer Effects in the Classroom: Learning from Gender and Race Variation, NBER Working Papers 7867, National Bureau of Economic Research, Inc. INEE (2020): PISA 2018. La organización escolar. Ministerio De Educación y Formación Profesional. Jürges, H. and K. Schneider (2011) "Why Young Boys Stumble: Early Tracking, Age and Gender Bias in the German School System" German Economic Review, vol. 12, no. 4, pp. 371-394. https://doi.org/10.1111/j.1468-0475.2011.00533.x . Krüger, N. (2020) Efectos Compañero en Contextos Escolares Altamente Segregados, en REICE. Revista Iberoamericana sobre Calidad, Eficacia y Cambio en Educación, 2020, 18(4), 171-196. https://doi.org/10.15366/reice2020.18.4.007 . Marks, G.N. (2005) Accounting for immigrant nonimmigrant differences in reading and mathematics in twenty countries, Ethnic and Racial Studies Vol. 28 No. 5 September 2005 pp. 925/946. Martin, A.J. (2011), Holding back and holding behind: Grade retention and students’ non academic and academic outcomes. British Educational Research Journal, 37: 739-763. https://doi.org/10.1080/01411926.2010.490874 . Micklewrighta, J., S.V. Schnepfb and P.N. Silva (2012) Peer effects and measurement error: The impact of sampling variation in school survey data (evidence from PISA), Economics of Education Review 31, 1136– 1142. Murillo, F. J., C. Martínez-Garrido y G. Belavi (2017). “Segregación escolar por origen nacional en España". OBETS. Revista de Ciencias Sociales, 12(2): pp-pp. 395-423. doi:10.14198/OBETS2017.12.2.04. Murillo, F. J. y C. Martínez-Garrido (2018) Incidencia de la crisis económica en la segregación escolar en España, Revista de Educación, 381, Julio-Septiembre, pp. 67-93. OECD (2009), PISA Data Analysis Manual: SAS, Second Edition, PISA, OECD Publishing, Paris, https://doi.org/10.1787/9789264056251-en . OECD (2016a), “Selecting and grouping students”, in PISA 2015 Results (Volume II): Policies and Practices for Successful Schools, OECD Publishing, Paris. DOI: https://doi.org/10.1787/9789264267510-9-en . OECD (2016b) “Immigrant background, student performance and students’ attitudes towards science”, in PISA 2015 Results (Volume I): Excellence and Equity in Education, OECD Publishing, Paris. https://doi.org/10.1787/9789264266490-11-en . OECD (2019a) PISA 2018 Results (Volume III): What School Life Means for Students’ Lives. Annex A1. Construction of indices. OECD Publishing, Paris. https://doi.org/10.1787/acd78851-en . OECD (2020), PISA 2018 Results (Volume V): Effective Plicies, Successful Schools, OECD Publishing, Paris. https://doi.org/10.1787/ca768d40-en . OECD (2022) Education spending (indicator). https://doi.org/10.1787/ca274bac-en . Pischke, J.S. and Al. Manning (2006) Comprehensive Versus Selective Schooling in England in Wales: What Do We Know? NBER Working Paper No. w12176, Available at SSRN: https://ssrn.com/abstract=897030 . Rangvid-Schindler, B. (2007) School composition effects in Denmark: quantile regression evidence from PISA 2000, Empirical Economics, 32, 359–86. Sacerdote, B. (2011) Chapter 4 - Peer Effects in Education: How Might They Work, How Big Are They and How Much Do We Know Thus Far?, Editor(s): E. A. Hanushek, S. Machin, L. Woessmann, Handbook of the Economics of Education, Elsevier, Vol. 3, pp. 249-277, https://doi.org/10.1016/B978-0-444-53429-3.00004-1. Salinas, J. y D. Santín (2012) Selección escolar y efectos de la inmigración sobre los resultados académicos españoles en PISA 2006, Revista de Educación, 358. Mayo-agosto, pp. 382-405. DOI: 10-4438/1988-592X-RE-2010-358-083 . Schneeweis, N. & R. Winter-Ebmer (2007) Peer Effects in Austrian Schools, Empirical Economics 32:387–409. DOI 10.1007/s00181-006-0091-4 . Schnepf, S.V. (2007) Immigrants’ educational disadvantage: an examination across ten countries and three surveys. Journal of Population Economics, 20, 527–545. https://doi.org/10.1007/s00148-006-0102-y . Tourón, J., E. López, L. Lizasoain, M. J. García y E. Navarro (2018) Alumnado español de alto y bajo rendimiento en ciencias en PISA 2015: análisis del impacto de algunas variables de contexto, Revista de Educación, 380. Abril-Junio 2018, pp. 156-184. United Nations (2020) International Migrant Stock. Department of Economic and Social Affairs, Population Division. Vandenberge, V. (2006) Achievement effectiveness and equity: the role of tracking, grade repetition and inter-school segregation, Applied Economics Letters, 13:11, 685-693. DOI: https://doi.org/10.1080/13504850500404944. Zinovyeva, N., F. Felgueroso and P. Vazquez (2014) Immigration and student achievement in Spain: evidence from PISA. SERIEs 5, 25–60. https://doi.org/10.1007/s13209-013-0101-7 .