Skip to content

Add employment sector (public/private) and SIC industry input variables#1785

Merged
vahid-ahmadi merged 2 commits into
mainfrom
add-employment-sector-variables
Jun 18, 2026
Merged

Add employment sector (public/private) and SIC industry input variables#1785
vahid-ahmadi merged 2 commits into
mainfrom
add-employment-sector-variables

Conversation

@vahid-ahmadi

Copy link
Copy Markdown
Collaborator

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_sectorEnum(EmploymentSector): NOT_EMPLOYED, PRIVATE, PUBLIC. Direct public/private flag for the main job.
  • sic_industry_divisionint: SIC 2007 division of the main job (0 if unknown). Division 84 = public administration & defence.

Both are unpopulated defaults here; the companion policyengine-uk-data PR fills them from the FRS mjobsect and sic fields, following the same passthrough pattern used for employment_status, region, and tenure_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: mjobsect covers ≈100% of workers; sic covers ~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 EmploymentSector enum loads (NOT_EMPLOYED/PRIVATE/PUBLIC).

🤖 Generated with Claude Code

vahid-ahmadi and others added 2 commits June 17, 2026 18:09
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 vahid-ahmadi requested a review from MaxGhenis June 18, 2026 08:31
@vahid-ahmadi vahid-ahmadi merged commit 1f5c58a into main Jun 18, 2026
9 checks passed
@vahid-ahmadi vahid-ahmadi deleted the add-employment-sector-variables branch June 18, 2026 10:08
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add employment sector (public/private) and SIC industry input variables

1 participant