Add employment sector (public/private) and SIC industry input variables#1785
Merged
Conversation
Add Person-level input variables describing the employer sector (public/ private) and SIC 2007 industry division of a person's main job, so the model can identify public-sector workers and support industry-level analysis. Populated from FRS mjobsect/sic in policyengine-uk-data. Closes #1784 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
vahid-ahmadi
added a commit
to PolicyEngine/policyengine-uk-data
that referenced
this pull request
Jun 18, 2026
The dataset now writes the employment_sector and sic_industry_division variables, which are defined in policyengine-uk 2.89.2 (PolicyEngine/policyengine-uk#1785). Update the pin and frozen lock so CI installs a model that recognises them. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Adds two Person-level input variables so PolicyEngine UK can represent employer sector and industry — which it currently cannot (the only employment classification is
employment_status, which captures employed/self-employed × FT/PT but not who employs the person).employment_sector—Enum(EmploymentSector):NOT_EMPLOYED,PRIVATE,PUBLIC. Direct public/private flag for the main job.sic_industry_division—int: SIC 2007 division of the main job (0 if unknown). Division 84 = public administration & defence.Both are unpopulated defaults here; the companion
policyengine-uk-dataPR fills them from the FRSmjobsectandsicfields, following the same passthrough pattern used foremployment_status,region, andtenure_type.Why
Enables identifying public-sector workers (e.g. public-sector pay reforms) and cutting analysis by sector/industry. The backing FRS fields are well-populated:
mjobsectcovers ≈100% of workers;siccovers ~92% of adults.Ordering
Must merge before the companion data PR, since the dataset build needs these variables to exist.
Closes #1784. Companion: PolicyEngine/policyengine-uk-data#432.
Tests
Verified both variables register in the model and the
EmploymentSectorenum loads (NOT_EMPLOYED/PRIVATE/PUBLIC).🤖 Generated with Claude Code