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] - Distributional impact by wealth #24

Merged
merged 6 commits into from
Aug 15, 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_wealth/average")

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

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

output

average:{'average': {1: -1542.5277425455492, 2: -1982.534041798336, 3: -4556.8445264034835, 4: -5370.201917927786, 5: -7216.048585689702, 6: -7591.304204543115, 7: -9211.025138324332, 8: -9648.62199574695, 9: -11506.889823053707, 10: -14378.295708381549, 11: -13195.0}} 
relative: {'relative': {1: -0.07043473659333963, 2: -0.08091752038892668, 3: -0.14646910570509714, 4: -0.15592888462331828, 5: -0.17838073974119345, 6: -0.18231409463546466, 7: -0.19855480132208575, 8: -0.18318290061281753, 9: -0.19595437624444986, 10: -0.1391547762431559, 11: -0.028110349900091886}} 

@masterismail masterismail changed the title Distributional impact by wealth [1] - Distributional impact by wealth Aug 8, 2024
@masterismail masterismail merged commit 8714658 into PolicyEngine:main Aug 15, 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