-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix Budget change reforms break on subset simulations #994 * Add the Scottish PAWHP * Versioning
- Loading branch information
1 parent
bf6dfe8
commit 43b6246
Showing
12 changed files
with
114 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
policyengine_uk/parameters/gov/social_security_scotland/pawhp/amount/base.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
description: Amount paid to non-benefit-claiming pensioners for the PAWHP. | ||
values: | ||
2024-01-01: 0 | ||
2025-01-01: 100 | ||
metadata: | ||
unit: currency-GBP | ||
label: PAWHP base payment | ||
uprating: gov.obr.consumer_price_index |
6 changes: 6 additions & 0 deletions
6
policyengine_uk/parameters/gov/social_security_scotland/pawhp/amount/higher.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
values: | ||
2024-01-01: 300 | ||
metadata: | ||
unit: currency-GBP | ||
label: PAWHP lower amount | ||
uprating: gov.obr.consumer_price_index |
6 changes: 6 additions & 0 deletions
6
policyengine_uk/parameters/gov/social_security_scotland/pawhp/amount/lower.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
values: | ||
2024-01-01: 200 | ||
metadata: | ||
unit: currency-GBP | ||
label: PAWHP lower amount | ||
uprating: gov.obr.consumer_price_index |
6 changes: 6 additions & 0 deletions
6
..._uk/parameters/gov/social_security_scotland/pawhp/eligibility/higher_age_requirement.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description: Age requirement to qualify for the higher PAWHP. | ||
values: | ||
2000-01-01: 80 | ||
metadata: | ||
unit: year | ||
label: Winter Fuel Payment higher amount age requirement |
8 changes: 8 additions & 0 deletions
8
...engine_uk/parameters/gov/social_security_scotland/pawhp/eligibility/require_benefits.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
description: Whether receipt of means-tested benefits is required to qualify for the Winter Fuel Payment. | ||
values: | ||
2000-01-01: false | ||
2024-01-01: | ||
value: true | ||
metadata: | ||
unit: bool | ||
label: PAWHP means-tested benefits requirement |
6 changes: 6 additions & 0 deletions
6
...ameters/gov/social_security_scotland/pawhp/eligibility/state_pension_age_requirement.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description: Whether individuals must be State Pension Age to qualify for the PAWHP. | ||
values: | ||
2000-01-01: true | ||
metadata: | ||
unit: bool | ||
label: PAWHP State Pension Age requirement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
policyengine_uk/variables/gov/social_security_scotland/pawhp.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from policyengine_uk.model_api import * | ||
|
||
|
||
class pawhp(Variable): | ||
label = "Pension Age Winter Heating Payment" | ||
entity = Household | ||
definition_period = YEAR | ||
value_type = float | ||
unit = GBP | ||
|
||
def formula(household, period, parameters): | ||
in_scotland = ( | ||
household("country", period).decode_to_str() == "SCOTLAND" | ||
) | ||
age = household.members("age", period) | ||
is_SP_age = household.members("is_SP_age", period) | ||
wfp = parameters(period).gov.social_security_scotland.pawhp | ||
on_mtb = ( | ||
add( | ||
household, | ||
period, | ||
[ | ||
"pension_credit", | ||
"income_support", | ||
"esa_income", | ||
"jsa_income", | ||
], | ||
) | ||
> 0 | ||
) | ||
meets_mtb_requirement = on_mtb | ~wfp.eligibility.require_benefits | ||
meets_spa_requirement = ( | ||
household.any(is_SP_age) | ||
| ~wfp.eligibility.state_pension_age_requirement | ||
) | ||
meets_higher_age_requirement = household.any( | ||
age >= wfp.eligibility.higher_age_requirement | ||
) | ||
qualifies_for_higher = ( | ||
meets_mtb_requirement | ||
& meets_spa_requirement | ||
& meets_higher_age_requirement | ||
) | ||
qualifies_for_lower = ( | ||
meets_mtb_requirement | ||
& meets_spa_requirement | ||
& ~meets_higher_age_requirement | ||
) | ||
|
||
qualifies_for_base = ~meets_mtb_requirement & meets_spa_requirement | ||
|
||
return in_scotland * ( | ||
wfp.amount.higher * qualifies_for_higher | ||
+ wfp.amount.lower * qualifies_for_lower | ||
+ wfp.amount.base * qualifies_for_base | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters