Skip to content

Commit 07e3277

Browse files
Merge pull request #117 from PolicyEngine/nikhilwoodruff/issue116
Child limit targets need 2024-25 uprating
2 parents 7a61b13 + 006d24a commit 07e3277

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: patch
2+
changes:
3+
fixed:
4+
- Uprating in child limit target.

policyengine_uk_data/tests/test_child_limit.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ def test_child_limit():
2929
).sum()
3030
households_affected = (capped_households * household_weight).sum()
3131

32-
child_target = 1.6e6 # Expected number of affected children
33-
household_target = 440e3 # Expected number of affected households
32+
UPRATING_24_25 = 1.12 # https://ifs.org.uk/articles/two-child-limit-poverty-incentives-and-cost, table at the end
33+
child_target = (
34+
1.6e6 * UPRATING_24_25
35+
) # Expected number of affected children
36+
household_target = (
37+
440e3 * UPRATING_24_25
38+
) # Expected number of affected households
3439

3540
assert (
3641
abs(children_affected / child_target - 1) < 0.1

policyengine_uk_data/utils/loss.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,12 @@ def pe_count(*variables):
252252
children_in_capped_households
253253
)
254254
target_names.append("dwp/uc_two_child_limit_affected_child_count")
255-
target_values.append(1.6e6) # DWP statistics for 2024/25
255+
UPRATING_24_25 = 1.12 # https://ifs.org.uk/articles/two-child-limit-poverty-incentives-and-cost, table at the end
256+
target_values.append(1.6e6 * UPRATING_24_25) # DWP statistics for 2024/25
256257
# https://www.gov.uk/government/statistics/universal-credit-and-child-tax-credit-claimants-statistics-related-to-the-policy-to-provide-support-for-a-maximum-of-2-children-april-2024/universal-credit-and-child-tax-credit-claimants-statistics-related-to-the-policy-to-provide-support-for-a-maximum-of-two-children-april-2024
257258
df["dwp/uc_two_child_limit_affected_household_count"] = capped_households
258259
target_names.append("dwp/uc_two_child_limit_affected_household_count")
259-
target_values.append(440e3) # DWP statistics for 2024/25
260+
target_values.append(440e3 * UPRATING_24_25) # DWP statistics for 2024/25
260261

261262
combined_targets = pd.concat(
262263
[

0 commit comments

Comments
 (0)