Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/1785.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Add `employment_sector` (public/private) and `sic_industry_division` as Person-level input variables, enabling identification of public-sector workers and industry-level analysis once populated from the FRS.
21 changes: 21 additions & 0 deletions policyengine_uk/variables/household/income/employment_sector.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from policyengine_uk.model_api import *


class EmploymentSector(Enum):
NOT_EMPLOYED = "Not in paid employment"
PRIVATE = "Private sector"
PUBLIC = "Public sector"


class employment_sector(Variable):
value_type = Enum
entity = Person
possible_values = EmploymentSector
default_value = EmploymentSector.NOT_EMPLOYED
label = "Employer sector (public or private) of the person's main job"
documentation = (
"Whether the person's main job is in the public or private sector. "
"Sourced from the FRS `mjobsect` field; NOT_EMPLOYED where the person "
"has no main job."
)
definition_period = YEAR
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from policyengine_uk.model_api import *


class sic_industry_division(Variable):
value_type = int
entity = Person
label = "Standard Industrial Classification (2007) division of the main job"
documentation = (
"Two-digit SIC 2007 division of the person's main job (0 if unknown). "
"Sourced from the FRS `sic` field. Division 84 = 'Public administration "
"and defence; compulsory social security'."
)
default_value = 0
definition_period = YEAR
Loading