Stata syntax files are provided to replicate the research findings reported in the cited article. The syntax covers the preparation of the analytical dataset based on the German Microcensus Scientific Use Files 2010-2019, as well as the replication of the descriptive and multivariate analyses. To replicate the analyses, please use the German Microcensus waves 2010 to 2019. The data are not included in the replication package and must be requested from the Research Data Centre of the Federal Statistical Office and Statistical Offices of the Länder. Data source: German Microcensus 2010–2019, DOI: 10.21242/12211.2010.00.00.3.1.0 to 10.21242/12211.2019.00.00.3.1.0.