Scripts for Social Class

Here you find codes in Stata, R, SPSS or SAS to construct the class schema that I discuss and apply for different surveys. If you need to write your own code, the Excel-sheets below show how occupations are assigned to classes.

For Stata, Simon Kaiser (University of Bern) has written the module “oesch” that creates my class schema (use the commands “ssc install oesch” and “help oesch”). You can also use the Stata module “iscogen” written by Ben Jann (University of Bern); it provides a cross-walk between ISCO-08, ISCO-88 and ISCO-68 and constructs, among others, my class schema. For R, this module has been translated as DIGCLASS package (by the EU-JRC DIGCLASS team), encoding, among others, my class scheme.

Occupations (ISCO) into classes

Excel for occupations measured with ISCO-08 (4-digits)

Excel for occupations measured with ISCO-08 (2-digits)

Excel for occupations measured with ISCO-88 (4-digits)

Excel for occupations mesured with ISCO-88 (2-digits)

European Social Survey (ESS)

For a summary of my class schema and its coding in the ESS, see pdf image_pdf

ESS 2002-2006 (rounds 1 to 3) in Stata

ESS 2008-2010 (rounds 4 and 5) in Stata

ESS 2012-2020 (rounds 6 to 10) in Stata

ESS 2002-2010 (rounds 1 to 5) in R or in SPSS

ESS 2012-2020 (rounds 6 to 10) in R or in SPSS

International Social Survey Programme (ISSP) + MOSAiCH

ISSP 1987-2013 (+ cumulated dataset on Social Inequalities) in Stata with a table for variable names

ISSP 2014-2017 in Stata

ISSP 2010, 2011 in SPSS

MOSAiCH-ISSP 2017 in Stata (for Switzerland)

MOSAiCH-ISSP 2019 in Stata (for Switzerland)

MOSAiCH-ISSP 2022 in R (for Switzerland)

German Socio-Economic Panel (SOEP)

SOEP (CNEF equivalent file, all availables waves) in Stata

Swiss Household Panel (SHP)

SHP 1999 up to latest wave in Stata

SHP 1999 up to latest wave in SPSS

SHP 1999 up to latest wave in SAS

Swiss Election Studies (SELECTS)

SELECTS 2019 in Stata, R or SPSS

SELECTS 2015 in Stata, R or SPSS

SELECTS 2011 in SPSS

SELECTS 2007 in SPSS

SELECTS 2003 in SPSS

SELECTS 1999 in SPSS

SELECTS 1995 in SPSS

Luxembourg Income Study (LIS)

Create a hierarchical 4-class variable for many countries and years in R