Skip to content

Add highest_education from FRS EDUCQUAL#272

Merged
nwoodruff-co merged 4 commits intomainfrom
highest-education
Feb 19, 2026
Merged

Add highest_education from FRS EDUCQUAL#272
nwoodruff-co merged 4 commits intomainfrom
highest-education

Conversation

@nwoodruff-co
Copy link
Collaborator

Summary

  • Maps FRS EDUCQUAL field (codes 1–87) to EducationType enum values in frs.py
  • Covers degrees/PGCE/nursing → TERTIARY; A-levels/Highers/NVQ L1-3 → UPPER_SECONDARY; HNC/HND/ONC/NVQ L4 → POST_SECONDARY; GCSE/O-level → LOWER_SECONDARY; no qualifications → NOT_COMPLETED_PRIMARY; blanks/unmatched → UPPER_SECONDARY (matches variable default)
  • Adds test_highest_education.py confirming baseline.calculate("highest_education") runs without error

Notes

  • EDUCQUAL is only present in the adult table; children get the UPPER_SECONDARY default
  • Codes 22–65 and 71–85 (miscellaneous vocational) are treated as POST_SECONDARY
  • The h5 files need rebuilding for the populated values to appear in the microsimulation

@nwoodruff-co nwoodruff-co merged commit da07f89 into main Feb 19, 2026
3 checks passed
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.

1 participant