Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1] - added Distributional impact by income #23

Merged
merged 6 commits into from
Aug 13, 2024

Conversation

masterismail
Copy link
Collaborator

usage

from policyengine import EconomicImpact

impact = EconomicImpact(reform={
  "gov.hmrc.income_tax.rates.uk[0].rate": {
    "2024-01-01.2100-12-31": 0.55
  }},country="uk")

average =impact.calculate("distributional/by_income/average")

relative = impact.calculate("distributional/by_income/relative") 

print(
    f"average: {budgetary_impact} \n"
    f"relative: {benefit_spending_impact} \n"
)

output

average: {'average': {1: -288.4419422028393, 2: -936.7849231542535, 3: -1655.8066942572789, 4: -3040.3849413280304, 5: -5082.727697456715, 6: -8483.137124053015, 7: -11510.447500088267, 8: -14567.684605663524, 9: -17960.33204429504, 10: -22070.767989875396, 11: -13195.0}} 
relative: {'relative': {1: -0.026265868982450032, 2: -0.05321454070727573, 3: -0.07293061898874185, 4: -0.1046825029478255, 5: -0.1407466605531786, 6: -0.19129333726780962, 7: -0.2185085314786923, 8: -0.22920465056330844, 9: -0.21991139800089637, 10: -0.12790076021888797, 11: -0.007019584080998393}} 

@masterismail masterismail changed the title added Distributional impact by income [1] - added Distributional impact by income Aug 8, 2024
@nikhilwoodruff nikhilwoodruff merged commit 9f404ec into PolicyEngine:main Aug 13, 2024
1 check 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.

2 participants