|
1 | 1 | from policyengine_uk.model_api import * |
2 | 2 |
|
3 | 3 |
|
| 4 | +GOV_SPENDING_VARIABLES = [ |
| 5 | + "child_benefit", |
| 6 | + "council_tax_benefit", |
| 7 | + "esa_income", |
| 8 | + "esa_contrib", |
| 9 | + "housing_benefit", |
| 10 | + "income_support", |
| 11 | + "jsa_income", |
| 12 | + "jsa_contrib", |
| 13 | + "pension_credit", |
| 14 | + "universal_credit", |
| 15 | + "working_tax_credit", |
| 16 | + "child_tax_credit", |
| 17 | + "attendance_allowance", |
| 18 | + "afcs", |
| 19 | + "bsp", |
| 20 | + "carers_allowance", |
| 21 | + "dla", |
| 22 | + "iidb", |
| 23 | + "incapacity_benefit", |
| 24 | + "pip", |
| 25 | + "sda", |
| 26 | + "state_pension", |
| 27 | + "maternity_allowance", |
| 28 | + "statutory_sick_pay", |
| 29 | + "statutory_maternity_pay", |
| 30 | + "ssmg", |
| 31 | + "basic_income", |
| 32 | + "epg_subsidy", |
| 33 | + "cost_of_living_support_payment", |
| 34 | + "energy_bills_rebate", |
| 35 | + "winter_fuel_allowance", |
| 36 | + "pawhp", |
| 37 | + "other_public_spending_budget_change", |
| 38 | + "tax_free_childcare", |
| 39 | + "extended_childcare_entitlement", |
| 40 | + "universal_childcare_entitlement", |
| 41 | + "targeted_childcare_entitlement", |
| 42 | + "care_to_learn", |
| 43 | + "childcare_grant", |
| 44 | + "parents_learning_allowance", |
| 45 | + "adult_dependants_grant", |
| 46 | + "travel_grant", |
| 47 | + "disabled_students_allowance", |
| 48 | + "bursary_fund_16_to_19", |
| 49 | + "dfe_education_spending", |
| 50 | + "dft_subsidy_spending", |
| 51 | + "nhs_spending", |
| 52 | + "carer_support_payment", |
| 53 | +] |
| 54 | + |
| 55 | + |
4 | 56 | class gov_spending(Variable): |
5 | 57 | label = "government spending" |
6 | 58 | documentation = "Government spending impact in respect of this household." |
7 | 59 | entity = Household |
8 | 60 | definition_period = YEAR |
9 | 61 | value_type = float |
10 | 62 | unit = GBP |
11 | | - adds = [ |
12 | | - "child_benefit", |
13 | | - "council_tax_benefit", |
14 | | - "esa_income", |
15 | | - "esa_contrib", |
16 | | - "housing_benefit", |
17 | | - "income_support", |
18 | | - "jsa_income", |
19 | | - "jsa_contrib", |
20 | | - "pension_credit", |
21 | | - "universal_credit", |
22 | | - "working_tax_credit", |
23 | | - "child_tax_credit", |
24 | | - "attendance_allowance", |
25 | | - "afcs", |
26 | | - "bsp", |
27 | | - "carers_allowance", |
28 | | - "dla", |
29 | | - "iidb", |
30 | | - "incapacity_benefit", |
31 | | - "pip", |
32 | | - "sda", |
33 | | - "state_pension", |
34 | | - "maternity_allowance", |
35 | | - "statutory_sick_pay", |
36 | | - "statutory_maternity_pay", |
37 | | - "ssmg", |
38 | | - "basic_income", |
39 | | - "epg_subsidy", |
40 | | - "cost_of_living_support_payment", |
41 | | - "energy_bills_rebate", |
42 | | - "winter_fuel_allowance", |
43 | | - "pawhp", |
44 | | - "other_public_spending_budget_change", |
45 | | - "tax_free_childcare", |
46 | | - "extended_childcare_entitlement", |
47 | | - "universal_childcare_entitlement", |
48 | | - "targeted_childcare_entitlement", |
49 | | - "care_to_learn", |
50 | | - "childcare_grant", |
51 | | - "parents_learning_allowance", |
52 | | - "adult_dependants_grant", |
53 | | - "travel_grant", |
54 | | - "disabled_students_allowance", |
55 | | - "bursary_fund_16_to_19", |
56 | | - "dfe_education_spending", |
57 | | - "dft_subsidy_spending", |
58 | | - "nhs_spending", |
59 | | - "carer_support_payment", |
60 | | - ] |
61 | 63 |
|
62 | 64 | def formula(household, period, parameters): |
63 | | - variables = list(gov_spending.adds) |
| 65 | + variables = list(GOV_SPENDING_VARIABLES) |
64 | 66 | abolish_council_tax = parameters.gov.contrib.abolish_council_tax(period) |
65 | 67 | if abolish_council_tax: |
66 | 68 | variables = [v for v in variables if v != "council_tax_benefit"] |
|
0 commit comments