socstrat: An automated bulk recoding command that constructs commonly employed British social stratification measures
In this article, I illustrate the socstrat command, which automates the cleaning, recoding, and construction of common social stratification measures used to analyze social class in the United Kingdom. Researchers can use socstrat to construct two standard measures: the National Statistics Socio-economic Classification (NS-SEC) and the Registrar General’s Social Classes (RGSC). RGSC was once the UK’s official measure of social class and was later replaced by NS-SEC. Class membership under either scheme depends on time and on the Standard Occupational Classification codes in use. socstrat constructs RGSC and NS-SEC measures from Standard Occupational Classification 1990, 2000, 2010, and 2020 codes. By automating a long coding task, the command increases efficiency and applies a uniform approach to recoding and construction, which reduces human error in the coding process.
Authors
- Scott Oatley (ORCID: https://orcid.org/0000-0003-1533-3214)
Institutions
- University College London (GB)
Publication Details
- Journal
- The Stata Journal Promoting communications on statistics and Stata
- Published
- 2026-11-30
- DOI
- https://doi.org/10.1177/1536867x261508532
- Primary Topic
- Intergenerational and Educational Inequality Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00