policyengine / openfisca-uk-data Goto Github PK
View Code? Open in Web Editor NEWPrepares UK microdata for use with the OpenFisca UK tax and benefit microsimulation model.
Home Page: https://policyengine.github.io/openfisca-uk-data
Prepares UK microdata for use with the OpenFisca UK tax and benefit microsimulation model.
Home Page: https://policyengine.github.io/openfisca-uk-data
Following work in UBICenter/uk-carbon-dividend#6
Include region of the UK in the random forest inputs when imputing data from the Wealth and Assets Survey.
Placeholder until the data comes out at https://beta.ukdataservice.ac.uk/datacatalogue/series/series?id=200017#!/access-data
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:
And spending types from the LCFS:
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:
The imputation occurs in https://github.com/PolicyEngine/openfisca-uk-data/blob/master/openfisca_uk_data/datasets/frs/frs_enhanced/lcf_imputation.py
Needs to be added to the GitHub Action
For wealth taxes
To be more general than the current WAS-imputed FRS
Hopefully we don't need to do this, but in case, here's an option:
We're currently fusing the 2016-2018 WAS to the 2019-2020 FRS. We should uprate wealth and its components (e.g. land) accordingly, perhaps by nominal GDP growth.
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?
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).
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)?
Just noticed that private transfer income and maintenance income have some negative values.
@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.
By using the cname arg in https://github.com/peaceiris/actions-gh-pages
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.