The do-files presents the coding and empirical strategy for the results presented in the research article "Former Social Democratic Partisanship, Working-Class Background, and Support for Right-Wing Populist Parties: A Research Note." Politische Vierteljahresschrift/German Political Science Quarterly. https://link.springer.com/article/10.1007/s11615-025-00604-y