Giter Club home page Giter Club logo

openfisca-uk-data's Introduction

PolicyEngine

This repository contains the core infrastructure for policyengine.org. Namely:

  • policyengine, a Python package which contains the server-side implementations, and
  • policyengine-client, a React library containing high-level components to build the client-side interface.

Development

NOTE: requires Python 3.7

First, ensure you have pnpm installed: https://pnpm.io/installation.

Then, install using make install. Then, to debug the client, run make debug-client, or to debug the server, run make debug-server.

If your changes involve the server, change useLocalServer = false; to useLocalServer = true; in policyengine-client/src/countries/country.jsx. Otherwise, change usePolicyEngineOrgServer = false; to usePolicyEngineOrgServer = true; in policyengine-client/src/countries/country.jsx.

If you don't have access to the UK Family Resources Survey, you can still run the UK population-wide calculator on an anonymised version. To do that, instead of running make debug-server, run UK_SYNTHETIC=1 make debug-server

openfisca-uk-data's People

Contributors

maxghenis avatar nikhilwoodruff avatar

Watchers

 avatar

openfisca-uk-data's Issues

Investigate possible bug in CLI dataset generation

Filing because I've noticed it a few times: openfisca-uk-data frs generate 2018 and FRS.generate(2018) producing different results (the Python interface producing correctly lower income tax and self-employed NI aggregates, and the CLI producing income tax of around £190bn, which is more accurate to the external figures, but it's not right because of the under-reporting of income in the FRS).

Add summary section to carbon emissions imputation docs

We have some documentation on the imputation of carbon emissions to the FRS at https://policyengine.github.io/openfisca-uk-data/imputation.html#imputing-carbon-emissions-to-the-frs

Let's add some summary statistics:

  • Totals for each imputed consumption category
  • Contribution to carbon emissions
  • Carbon emission totals

The imputation occurs in https://github.com/PolicyEngine/openfisca-uk-data/blob/master/openfisca_uk_data/datasets/frs/frs_enhanced/lcf_imputation.py

Archive repo

Seems like all the relevant code is migrated to openfisca-uk, so we just need to transfer issues over before we archive, is that right @nikhilwoodruff?

Adjust FRS income data using the SPI

@nikhilwoodruff has already been working on this, but to formalize: SPI microdata matches administrative totals, and has income of about 100bn pounds more than the FRS, especially at the high end and especially in non-wage income like dividends. We can adjust the FRS data using some quantile-related techniques put forth by the government and IFS, and possibly with random-forests-based synthimpute for people with none of the missing income type (like dividends) in the FRS.

Download datasets

Is it possible to download datasets like the FRS from the package directly, as openfisca-us-data does (assuming the user is authenticated with UKDS)?

Shift land and carbon calculations to within PolicyEngine

We currently have land value (x * property wealth + y * corporate wealth) and carbon (x_1 * food spending + x_2 * transport spending, etc.). It'd be better to impute these inputs and apply the final step in OpenFisca-UK.

We need to impute wealth types from the WAS:

  • Property wealth
  • Corporate wealth

And spending types from the LCFS:

  • Food and non-alcoholic beverages
  • Alcohol and tobacco
  • Clothing and footwear
  • Housing, water and electricity
  • Household furnishings
  • Health
  • Transport
  • Communication
  • Recreation
  • Education
  • Restaurants
  • Miscellaneous

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.