policyengine-uk 2.49.4__py3-none-any.whl → 2.50.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of policyengine-uk might be problematic. Click here for more details.
- policyengine_uk/tests/microsimulation/reforms_config.yaml +32 -32
- policyengine_uk/variables/gov/gov_tax.py +0 -1
- policyengine_uk/variables/gov/hmrc/household_tax.py +0 -1
- policyengine_uk/variables/household/income/hbai_household_net_income_ahc.py +13 -0
- policyengine_uk/variables/household/income/inflation_adjustment.py +24 -0
- {policyengine_uk-2.49.4.dist-info → policyengine_uk-2.50.0.dist-info}/METADATA +1 -1
- {policyengine_uk-2.49.4.dist-info → policyengine_uk-2.50.0.dist-info}/RECORD +9 -10
- policyengine_uk/variables/contrib/policyengine/high_income_incident_tax_change.py +0 -22
- {policyengine_uk-2.49.4.dist-info → policyengine_uk-2.50.0.dist-info}/WHEEL +0 -0
- {policyengine_uk-2.49.4.dist-info → policyengine_uk-2.50.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
reforms:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
2
|
+
- name: Raise basic rate by 1pp
|
|
3
|
+
expected_impact: 8.0
|
|
4
|
+
parameters:
|
|
5
|
+
gov.hmrc.income_tax.rates.uk[0].rate: 0.21
|
|
6
|
+
- name: Raise higher rate by 1pp
|
|
7
|
+
expected_impact: 5.0
|
|
8
|
+
parameters:
|
|
9
|
+
gov.hmrc.income_tax.rates.uk[1].rate: 0.42
|
|
10
|
+
- name: Raise personal allowance by ~800GBP/year
|
|
11
|
+
expected_impact: 0.7
|
|
12
|
+
parameters:
|
|
13
|
+
gov.hmrc.income_tax.allowances.personal_allowance.amount: 13000
|
|
14
|
+
- name: Raise child benefit by 25GBP/week per additional child
|
|
15
|
+
expected_impact: -1.4
|
|
16
|
+
parameters:
|
|
17
|
+
gov.hmrc.child_benefit.amount.additional: 25
|
|
18
|
+
- name: Reduce Universal Credit taper rate to 20%
|
|
19
|
+
expected_impact: -36.0
|
|
20
|
+
parameters:
|
|
21
|
+
gov.dwp.universal_credit.means_test.reduction_rate: 0.2
|
|
22
|
+
- name: Raise Class 1 main employee NICs rate to 10%
|
|
23
|
+
expected_impact: 12.4
|
|
24
|
+
parameters:
|
|
25
|
+
gov.hmrc.national_insurance.class_1.rates.employee.main: 0.1
|
|
26
|
+
- name: Raise VAT standard rate by 2pp
|
|
27
|
+
expected_impact: 21.2
|
|
28
|
+
parameters:
|
|
29
|
+
gov.hmrc.vat.standard_rate: 0.22
|
|
30
|
+
- name: Raise additional rate by 3pp
|
|
31
|
+
expected_impact: 5.3
|
|
32
|
+
parameters:
|
|
33
|
+
gov.hmrc.income_tax.rates.uk[2].rate: 0.48
|
|
@@ -29,7 +29,6 @@ class household_tax(Variable):
|
|
|
29
29
|
"private_school_vat",
|
|
30
30
|
"corporate_incident_tax_revenue_change",
|
|
31
31
|
"consumer_incident_tax_revenue_change",
|
|
32
|
-
"high_income_incident_tax_change",
|
|
33
32
|
"employer_ni_response_capital_incidence",
|
|
34
33
|
"employer_ni_response_consumer_incidence",
|
|
35
34
|
"student_loan_repayments",
|
|
@@ -17,3 +17,16 @@ class hbai_household_net_income_ahc(Variable):
|
|
|
17
17
|
"mortgage_interest_repayment",
|
|
18
18
|
"structural_insurance_payments",
|
|
19
19
|
]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class real_hbai_household_net_income_ahc(Variable):
|
|
23
|
+
label = "real household net income after housing costs (HBAI definition)"
|
|
24
|
+
entity = Household
|
|
25
|
+
definition_period = YEAR
|
|
26
|
+
value_type = float
|
|
27
|
+
unit = GBP
|
|
28
|
+
|
|
29
|
+
def formula(household, period, parameters):
|
|
30
|
+
return household("hbai_household_net_income_ahc", period) * household(
|
|
31
|
+
"inflation_adjustment_ahc", period
|
|
32
|
+
)
|
|
@@ -19,3 +19,27 @@ class inflation_adjustment(Variable):
|
|
|
19
19
|
current_period_cpi = cpi(period)
|
|
20
20
|
now_cpi = cpi(datetime.datetime.now().strftime("%Y-01-01"))
|
|
21
21
|
return now_cpi / current_period_cpi
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class inflation_adjustment_ahc(Variable):
|
|
25
|
+
label = f"inflation multiplier to get {datetime.datetime.now().year} after housing costs prices"
|
|
26
|
+
entity = Household
|
|
27
|
+
definition_period = YEAR
|
|
28
|
+
value_type = float
|
|
29
|
+
unit = "/1"
|
|
30
|
+
|
|
31
|
+
def formula(household, period, parameters):
|
|
32
|
+
cpi = (
|
|
33
|
+
parameters.gov.economic_assumptions.indices.obr.consumer_price_index
|
|
34
|
+
)
|
|
35
|
+
cpi_ahc = (
|
|
36
|
+
parameters.gov.economic_assumptions.indices.obr.consumer_price_index_ahc
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
cpi_ahc_val = cpi_ahc(period)
|
|
40
|
+
# Fall back to use cpi, for periods beyond 2029
|
|
41
|
+
if not cpi_ahc_val:
|
|
42
|
+
cpi_ahc_val = cpi(period)
|
|
43
|
+
|
|
44
|
+
now_cpi_ahc = cpi(datetime.datetime.now().strftime("%Y-01-01"))
|
|
45
|
+
return now_cpi_ahc / cpi_ahc_val
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: policyengine-uk
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.50.0
|
|
4
4
|
Summary: PolicyEngine tax and benefit system for the UK.
|
|
5
5
|
Project-URL: Homepage, https://github.com/PolicyEngine/policyengine-uk
|
|
6
6
|
Project-URL: Repository, https://github.com/PolicyEngine/policyengine-uk
|
|
@@ -545,7 +545,7 @@ policyengine_uk/tests/test_parameter_metadata.py,sha256=_2w2dSokAf5Jskye_KIL8eh8
|
|
|
545
545
|
policyengine_uk/tests/behavioral_responses/test_labor_supply_responses.yaml,sha256=xR8cy0XjcG8xTL_ufgEl1BHNWhXefVnA2va7X3v6FBk,5783
|
|
546
546
|
policyengine_uk/tests/code_health/test_variables.py,sha256=9Y-KpmzhyRGy9eEqocK9z91NXHX5QIF3mDMNGvegb7Q,1398
|
|
547
547
|
policyengine_uk/tests/microsimulation/README.md,sha256=1toB1Z06ynlUielTrsAaeo9Vb-c3ZrB3tbbR4E1xUGk,3924
|
|
548
|
-
policyengine_uk/tests/microsimulation/reforms_config.yaml,sha256=
|
|
548
|
+
policyengine_uk/tests/microsimulation/reforms_config.yaml,sha256=vJF-BeiaR9W1BiJjr8TIxKDEcks28LSTDcTryXuoSTs,1086
|
|
549
549
|
policyengine_uk/tests/microsimulation/test_reform_impacts.py,sha256=xM3M2pclEhA9JIFpnuiPMy1fEBFOKcSzroRPk73FPls,2635
|
|
550
550
|
policyengine_uk/tests/microsimulation/test_validity.py,sha256=_mHgrNu-hKzVd9V2GSg_yPQgJctxRzdQM7lM2bUvqNY,636
|
|
551
551
|
policyengine_uk/tests/microsimulation/update_reform_impacts.py,sha256=4m5EpPu4SXTE3qOPkx3eIZnlaOzprfm6GmMCXETZuLk,6890
|
|
@@ -715,7 +715,6 @@ policyengine_uk/variables/contrib/labour/private_school_vat.py,sha256=IF1XfNNYFu
|
|
|
715
715
|
policyengine_uk/variables/contrib/policyengine/consumer_incident_tax_revenue_change.py,sha256=b8_dTgmqLqEjxL9rJbHuIKqttcoP3nmdX6Jr46XpEjY,825
|
|
716
716
|
policyengine_uk/variables/contrib/policyengine/corporate_incident_tax_revenue_change.py,sha256=HnsGLkpUZWI-ITs6nhvi-avOBbekMLhFghjuLuQMVIQ,510
|
|
717
717
|
policyengine_uk/variables/contrib/policyengine/education_budget_change.py,sha256=LBVk5exhxqfbdT2BOur4cewTeOr04g60oSuwUPahsuM,1466
|
|
718
|
-
policyengine_uk/variables/contrib/policyengine/high_income_incident_tax_change.py,sha256=T-CPp_frU3jUYQJvyKEUgK8WL0f0aBMOR70blVOrzk4,775
|
|
719
718
|
policyengine_uk/variables/contrib/policyengine/nhs_budget_change.py,sha256=Z5k9jgiR_yi62Et_qhPU83Z5Pv6fDSbGhRVzNesMPyQ,1448
|
|
720
719
|
policyengine_uk/variables/contrib/policyengine/other_public_spending_budget_change.py,sha256=xz2lUFKS54BYoSrrBdp3UhY1TYQeqsuwaDsliGzEHqA,1527
|
|
721
720
|
policyengine_uk/variables/contrib/policyengine/pre_budget_change_household_benefits.py,sha256=1nWJ42sO57AkhF6UaF7VyCY9rqATQND1njlhtpPC398,2063
|
|
@@ -738,7 +737,7 @@ policyengine_uk/variables/contrib/ubi_center/basic_income/bi_maximum.py,sha256=N
|
|
|
738
737
|
policyengine_uk/variables/contrib/ubi_center/basic_income/bi_phaseout.py,sha256=CcTdVg4KABnB8Uj0DpiO4wXfpUsRMGn1aHgoQqxBCaI,259
|
|
739
738
|
policyengine_uk/variables/gov/gov_balance.py,sha256=fNo-e-Nc3SIVAoCQR0VUMKj3-qre9IpYcfz-KEYkQ5w,328
|
|
740
739
|
policyengine_uk/variables/gov/gov_spending.py,sha256=VWWnDaCWuyIUmxvAjiD7gwrk-TwK63j9ZcLiFRw-8dI,1382
|
|
741
|
-
policyengine_uk/variables/gov/gov_tax.py,sha256=
|
|
740
|
+
policyengine_uk/variables/gov/gov_tax.py,sha256=LY8kCHZr9wiTJ52GftTO1AL7UqvOhA7JQ9c6xHd26-A,1234
|
|
742
741
|
policyengine_uk/variables/gov/dcms/bbc/tv_licence/free_tv_licence_value.py,sha256=3W9zi4rnq5-HAPBHr_DLZHlyMVHs5TL3ZhB0GdfDTyM,710
|
|
743
742
|
policyengine_uk/variables/gov/dcms/bbc/tv_licence/tv_licence.py,sha256=kHCMt8s6EQjzFN3AZUw05HwJf4GFJDjJQzsVYKCe2QY,689
|
|
744
743
|
policyengine_uk/variables/gov/dcms/bbc/tv_licence/tv_licence_discount.py,sha256=h-zV_TtYl2hMKmilq-QK_hci0C66k4_gnhk2IAyLbI8,1233
|
|
@@ -976,7 +975,7 @@ policyengine_uk/variables/gov/hmrc/child_benefit_reported.py,sha256=YSG1d5A1FhGw
|
|
|
976
975
|
policyengine_uk/variables/gov/hmrc/child_benefit_respective_amount.py,sha256=BYjZEww3bmhkP7tohteTsxIEsx3eHMtMfawHkrCmWvc,1153
|
|
977
976
|
policyengine_uk/variables/gov/hmrc/corporate_sdlt.py,sha256=-RvgqRVU_w3jfT1m9x9wM8PuLxtkp-8vT7y76mPdk-A,573
|
|
978
977
|
policyengine_uk/variables/gov/hmrc/expected_sdlt.py,sha256=kKejNXGwb_hvNH-604Y9N8hab_FMqv6XjogCA0cKFQE,578
|
|
979
|
-
policyengine_uk/variables/gov/hmrc/household_tax.py,sha256=
|
|
978
|
+
policyengine_uk/variables/gov/hmrc/household_tax.py,sha256=pET71_7LH2mri5EeG_nSJiNICaOryGqE-ITHoxu52iM,1393
|
|
980
979
|
policyengine_uk/variables/gov/hmrc/sdlt_liable.py,sha256=oxw8Q_Aj4mFWKpPdhj_Tq3Jt2CBaln7Vf7mpdKjQlQA,544
|
|
981
980
|
policyengine_uk/variables/gov/hmrc/sdlt_on_non_residential_property_rent.py,sha256=WIXbls7gLMnnNswkIN7tB7yeDwNqTIDfxOg6is8zoWE,786
|
|
982
981
|
policyengine_uk/variables/gov/hmrc/sdlt_on_non_residential_property_transactions.py,sha256=D5KA9Nn9kAf93oOOLLR8YxrnuNefkv8UKAmG4EKSgqk,641
|
|
@@ -1268,7 +1267,7 @@ policyengine_uk/variables/household/income/hbai_benefits.py,sha256=IPitXWgJcUo9c
|
|
|
1268
1267
|
policyengine_uk/variables/household/income/hbai_excluded_income.py,sha256=UKYNFcfaP96xWYOnyEIe-0Z0hpDWBbbHpsJ-Ag6xKXM,477
|
|
1269
1268
|
policyengine_uk/variables/household/income/hbai_excluded_income_change.py,sha256=jHQs3HXBjx7cREp-ljf09DBnitdHSq9jrjVmKmbARRA,596
|
|
1270
1269
|
policyengine_uk/variables/household/income/hbai_household_net_income.py,sha256=Tuvf8VMdldmz7GiM4KxFW5a4EuR196bUkQfTAn8u0YE,2406
|
|
1271
|
-
policyengine_uk/variables/household/income/hbai_household_net_income_ahc.py,sha256=
|
|
1270
|
+
policyengine_uk/variables/household/income/hbai_household_net_income_ahc.py,sha256=KgBO-T2xrcBGF62kUkxmzpXbbyxid8avYowE817Wjmw,877
|
|
1272
1271
|
policyengine_uk/variables/household/income/hours_worked.py,sha256=hW4cUAV2xK3drDXXBmcqp5Soao4e7r9Xxfpwh7tBOx8,255
|
|
1273
1272
|
policyengine_uk/variables/household/income/household_benefits.py,sha256=8NVY3BuNiLLQ23IRSY0xoOE8AZP_e_I2j5h432cFPK4,2389
|
|
1274
1273
|
policyengine_uk/variables/household/income/household_gross_income.py,sha256=d-EDrcUslPKsIpYYboAngMCvdpVgt_g_tABneG8TFh8,444
|
|
@@ -1286,7 +1285,7 @@ policyengine_uk/variables/household/income/in_relative_poverty_ahc.py,sha256=335
|
|
|
1286
1285
|
policyengine_uk/variables/household/income/in_relative_poverty_bhc.py,sha256=Okhc5V844qoNhTPR5db_T8Kcq412BhfzenSDOUTjppg,525
|
|
1287
1286
|
policyengine_uk/variables/household/income/in_work.py,sha256=D5rBwUIb2WjIDZODI_4vVBTtCPsilvAkqoL8tuN653w,506
|
|
1288
1287
|
policyengine_uk/variables/household/income/income_decile.py,sha256=pcUUESL0K74YVFG0aismjk4IQTyGmTdmnnEI37UgZUQ,468
|
|
1289
|
-
policyengine_uk/variables/household/income/inflation_adjustment.py,sha256=
|
|
1288
|
+
policyengine_uk/variables/household/income/inflation_adjustment.py,sha256=C2cEUE02v5JdV_1q81z7s-UDhLbBGrZdYHOKX2GFGOQ,1394
|
|
1290
1289
|
policyengine_uk/variables/household/income/is_QYP.py,sha256=QlsndiWhoJLX-p0XRSRIQRnE73McnFJM7ra3C_7coTc,513
|
|
1291
1290
|
policyengine_uk/variables/household/income/is_apprentice.py,sha256=isDDLgrwhRGHLhl-0O_g_38A1UV82mqhVTp8noNLBH0,250
|
|
1292
1291
|
policyengine_uk/variables/household/income/is_child_or_QYP.py,sha256=c97SUoxXTklzBp4LJFrjv_wRr-W8E-Z3tIzp-1rDWn4,353
|
|
@@ -1388,7 +1387,7 @@ policyengine_uk/variables/misc/spi_imputed.py,sha256=iPVlBF_TisM0rtKvO-3-PQ2UYCe
|
|
|
1388
1387
|
policyengine_uk/variables/misc/uc_migrated.py,sha256=zFNcUJaO8gwmbL1iY9GKgUt3G6J9yrCraqBV_5dCvlM,306
|
|
1389
1388
|
policyengine_uk/variables/misc/categories/lower_middle_or_higher.py,sha256=C54tHYz2DmOyvQYCC1bF8RJwRZinhAq_e3aYC-9F5fM,157
|
|
1390
1389
|
policyengine_uk/variables/misc/categories/lower_or_higher.py,sha256=81NIbLLabRr9NwjpUZDuV8IV8_mqmp5NM-CZvt55TwE,129
|
|
1391
|
-
policyengine_uk-2.
|
|
1392
|
-
policyengine_uk-2.
|
|
1393
|
-
policyengine_uk-2.
|
|
1394
|
-
policyengine_uk-2.
|
|
1390
|
+
policyengine_uk-2.50.0.dist-info/METADATA,sha256=JOij1Pjkmwox1BueOpJh3t37F2GVvrH-_08qRI8s2P8,3995
|
|
1391
|
+
policyengine_uk-2.50.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
1392
|
+
policyengine_uk-2.50.0.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
|
|
1393
|
+
policyengine_uk-2.50.0.dist-info/RECORD,,
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
from policyengine_uk.model_api import *
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class high_income_incident_tax_change(Variable):
|
|
5
|
-
label = "high income-incident tax revenue change"
|
|
6
|
-
entity = Household
|
|
7
|
-
definition_period = YEAR
|
|
8
|
-
value_type = float
|
|
9
|
-
unit = GBP
|
|
10
|
-
|
|
11
|
-
def formula(household, period, parameters):
|
|
12
|
-
if household.simulation.dataset is None:
|
|
13
|
-
return 0
|
|
14
|
-
|
|
15
|
-
total_income = household.members("total_income", period)
|
|
16
|
-
high_income = household.sum(max_(total_income - 100e3, 0))
|
|
17
|
-
weight = household("household_weight", period)
|
|
18
|
-
share = high_income / (high_income * weight).sum()
|
|
19
|
-
revenue_change = parameters(
|
|
20
|
-
period
|
|
21
|
-
).gov.contrib.policyengine.budget.high_income_incident_tax_change
|
|
22
|
-
return revenue_change * 1e9 * share
|
|
File without changes
|
|
File without changes
|