Skip to main content

PolicyEngine UK

PyPI version Code style: black

For microsimulation, use policyengine.py. Society-wide microsimulation — population aggregates and distributional or budgetary impacts — is moving to the managed policyengine.py bundle, which pins certified, calibration-gated datasets. Direct microsimulation via policyengine-uk (Microsimulation()) is deprecated and being migrated to policyengine.py. This package remains the home of the UK tax-benefit rules and household-level calculations. Microsimulation results are estimates.

PolicyEngine UK is PolicyEngine's microsimulation model of the UK tax-benefit system. It uses the PolicyEngine Core microsimulation framework, which is based on OpenFisca.

The elements are described in different folders. All the modelling happens within the policyengine_uk folder.

  • The rates and other system parameters are in the parameters folder.
  • The formulas and inputs are in the variables folder.
  • This country package comes also with reforms in the reforms folder.

The files that are outside from the policyengine_uk folder are used to set up the development environment. Installation instructions are located along with other documentation in the docs folder.

The model supports multiple different input datasets provided by the user, one of which is the Family Resources Survey,1 containing microdata on household incomes across the UK. PolicyEngine UK enhances this dataset by fusing it to other surveys and reweighting it to minimize a comprehensive loss metric that measures the difference from an array of administrative totals.

Fast setup instructions (Linux / macOS)

  1. Run pip install policyengine-uk

  2. Run policyengine-uk and go through the prompt to setup microdata.

Contact

The primary maintainer for PolicyEngine UK is Nikhil Woodruff, co-founder and CTO of PolicyEngine (nikhil@policyengine.org).

Citation

You may cite the source of your analysis as "PolicyEngine UK release #.#.#, author's calculations."

  1. Department for Work and Pensions, Office for National Statistics, NatCen Social Research. (2021). Family Resources Survey, 2019-2020. [data collection]. UK Data Service. SN: 8802, http://doi.org/10.5255/UKDA-SN-8802-1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

policyengine_uk-2.89.3.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

policyengine_uk-2.89.3-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file policyengine_uk-2.89.3.tar.gz.

File metadata

  • Download URL: policyengine_uk-2.89.3.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for policyengine_uk-2.89.3.tar.gz
Algorithm Hash digest
SHA256 b9d42233b8d5cdee4407f213cdaff9bf25157da18767cd38ea0654f313f841cf
MD5 2286a0117b36b43a1c6e9827c363566e
BLAKE2b-256 905bfb0d4785c3fbe180a14dc05bd55e2d4aafd217c802601d6c83658e87e4d7

See more details on using hashes here.

File details

Details for the file policyengine_uk-2.89.3-py3-none-any.whl.

File metadata

File hashes

Hashes for policyengine_uk-2.89.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8c77ce62e3f643c497b9e26a576bb5a43f069e71ed7cf44a0bbee88a42245482
MD5 c60665ac08a2c0baa45d16fb4bc55392
BLAKE2b-256 aebb1360e65f04d75976e599829cc05eab37725c17877da3ef544306ddee8d9e

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page