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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

socstrat: An automated bulk recoding command that constructs commonly employed British social stratification measures

Scott Oatley
The Stata Journal Promoting communications on statistics and Stata
Intergenerational and Educational Inequality Studies
article

socstrat: An automated bulk recoding command that constructs commonly employed British social stratification measures

Scott Oatley
article en

Abstract

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.

The Stata Journal Promoting communications on statistics and StataVol. 26(4)
University College London (GB)
Intergenerational and Educational Inequality Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
socstrat: An automated bulk recoding command that constructs commonly employed British social stratification measures — Scott Oatley · The Stata Journal Promoting communications on statistics and Stata (2026) | TGRS Research Map | TGRS