diff --git a/changelog.d/id-liheap-utility-providers.added.md b/changelog.d/id-liheap-utility-providers.added.md new file mode 100644 index 00000000000..ab0a5a9cd49 --- /dev/null +++ b/changelog.d/id-liheap-utility-providers.added.md @@ -0,0 +1 @@ +Use named northern utilities, Avista gas and Rocky Mountain Power provider columns for Idaho LIHEAP heating benefits and historical heating-cost estimates. diff --git a/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/estimated_heating_costs.yaml b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/estimated_heating_costs.yaml index e27544cf740..acbed0339b1 100644 --- a/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/estimated_heating_costs.yaml +++ b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/estimated_heating_costs.yaml @@ -4,8 +4,12 @@ description: Idaho uses these estimated heating-season costs by fuel and heating # This table is not confirmed as current for FY2026. # The FY2026 anchor records this modeling assumption, not a verified update. # Preserve the published amounts without inflation or a twelve-month uplift. -# Provider groups are not distinguished. Electricity uses Idaho Power & -# Southern Utilities; natural gas uses the complete Intermountain Gas column. +# Unspecified/unlisted providers use Idaho Power & Southern Utilities for +# electricity and the complete Intermountain Gas column for natural gas. +# Named northern utilities and Rocky Mountain Power use their historical +# provider columns. The Rocky Mountain Power costs come from the Appendix C +# column headed "Utah Power & Light". Northern membership follows +# northern_electric_providers. # The old rent-cost column and old benefit percentages are not used. oil_or_propane: 1: @@ -35,6 +39,21 @@ coal_or_wood: 2025-10-01: 1_600 3: 2025-10-01: 1_800 +natural_gas_avista: + 1: + 2025-10-01: 875 + 2: + 2025-10-01: 1_200 +electricity_northern: + 1: + 2025-10-01: 1_450 + 2: + 2025-10-01: 1_585 +electricity_rocky_mountain: + 2: + 2025-10-01: 1_692 + 3: + 2025-10-01: 1_836 metadata: propagate_metadata_to_children: true diff --git a/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/electricity.yaml b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/electricity.yaml index bb42cb0876e..f94cc043927 100644 --- a/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/electricity.yaml +++ b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/electricity.yaml @@ -1,8 +1,8 @@ description: Idaho provides this base electric-heating benefit by heating area and energy-burden group under the Low Income Home Energy Assistance Program. -# Electric utility-provider groups are not distinguished in the model for now. -# Use only the Idaho Power & Southern Utilities column; omit the Avista & -# Northern Utilities and Rocky Mountain Power columns. +# Idaho Power & Southern Utilities column, also used as the representative +# estimate for an unspecified/unlisted company or an unpublished combination. +# Named northern utilities and Rocky Mountain Power have separate parameters. # Heating areas 1-3 correspond to Areas I-III in the published chart. # Energy-burden groups: 1 = low, 2 = medium, 3 = high. 1: diff --git a/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/electricity_northern.yaml b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/electricity_northern.yaml new file mode 100644 index 00000000000..59679333308 --- /dev/null +++ b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/electricity_northern.yaml @@ -0,0 +1,34 @@ +description: Idaho provides this base northern electric heating benefit by heating area and energy-burden group under the Low Income Home Energy Assistance Program. + +# Only published area/provider combinations are stored. +# Heating areas 1-2 correspond to Areas I-II in the published chart. +# Energy-burden groups: 1 = low, 2 = medium, 3 = high. +1: + 1: + 2025-10-01: 322 + 2: + 2025-10-01: 335 + 3: + 2025-10-01: 348 +2: + 1: + 2025-10-01: 371 + 2: + 2025-10-01: 387 + 3: + 2025-10-01: 402 + +metadata: + propagate_metadata_to_children: true + unit: currency-USD + period: year + label: Idaho LIHEAP northern electric heating benefit + breakdown: + - range(1, 3) + - range(1, 4) + breakdown_labels: + - Heating area + - Energy-burden group + reference: + - title: Idaho PY26 LIHEAP Benefit Determination Chart + href: https://liheapch.acf.gov/docs/2026/benefits-matricies/ID_BenefitMatrix_Heating_2026.pdf#page=1 diff --git a/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/electricity_rocky_mountain.yaml b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/electricity_rocky_mountain.yaml new file mode 100644 index 00000000000..6388c7035bb --- /dev/null +++ b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/electricity_rocky_mountain.yaml @@ -0,0 +1,34 @@ +description: Idaho provides this base Rocky Mountain Power electric heating benefit by heating area and energy-burden group under the Low Income Home Energy Assistance Program. + +# Only published area/provider combinations are stored. +# Heating areas 2-3 correspond to Areas II-III in the published chart. +# Energy-burden groups: 1 = low, 2 = medium, 3 = high. +2: + 1: + 2025-10-01: 407 + 2: + 2025-10-01: 424 + 3: + 2025-10-01: 441 +3: + 1: + 2025-10-01: 461 + 2: + 2025-10-01: 481 + 3: + 2025-10-01: 500 + +metadata: + propagate_metadata_to_children: true + unit: currency-USD + period: year + label: Idaho LIHEAP Rocky Mountain Power electric heating benefit + breakdown: + - range(2, 4) + - range(1, 4) + breakdown_labels: + - Heating area + - Energy-burden group + reference: + - title: Idaho PY26 LIHEAP Benefit Determination Chart + href: https://liheapch.acf.gov/docs/2026/benefits-matricies/ID_BenefitMatrix_Heating_2026.pdf#page=1 diff --git a/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/natural_gas.yaml b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/natural_gas.yaml index 616f0b94cde..919be8fb873 100644 --- a/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/natural_gas.yaml +++ b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/natural_gas.yaml @@ -1,8 +1,8 @@ description: Idaho provides this base natural gas heating benefit by heating area and energy-burden group under the Low Income Home Energy Assistance Program. -# Natural gas provider groups are not distinguished in the model for now. -# Use the Intermountain Gas column, the only one filled in all three areas; -# omit the Avista column. Matches estimated_heating_costs. +# Intermountain Gas column, also used as the representative estimate for an +# unspecified/unlisted company or an unpublished combination. Avista has a +# separate parameter. Matches estimated_heating_costs. # Heating areas 1-3 correspond to Areas I-III in the published chart. # Energy-burden groups: 1 = low, 2 = medium, 3 = high. 1: diff --git a/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/natural_gas_avista.yaml b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/natural_gas_avista.yaml new file mode 100644 index 00000000000..4f19c298fac --- /dev/null +++ b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/matrix/natural_gas_avista.yaml @@ -0,0 +1,34 @@ +description: Idaho provides this base Avista natural gas heating benefit by heating area and energy-burden group under the Low Income Home Energy Assistance Program. + +# Only published area/provider combinations are stored. +# Heating areas 1-2 correspond to Areas I-II in the published chart. +# Energy-burden groups: 1 = low, 2 = medium, 3 = high. +1: + 1: + 2025-10-01: 168 + 2: + 2025-10-01: 176 + 3: + 2025-10-01: 183 +2: + 1: + 2025-10-01: 194 + 2: + 2025-10-01: 203 + 3: + 2025-10-01: 211 + +metadata: + propagate_metadata_to_children: true + unit: currency-USD + period: year + label: Idaho LIHEAP Avista natural gas heating benefit + breakdown: + - range(1, 3) + - range(1, 4) + breakdown_labels: + - Heating area + - Energy-burden group + reference: + - title: Idaho PY26 LIHEAP Benefit Determination Chart + href: https://liheapch.acf.gov/docs/2026/benefits-matricies/ID_BenefitMatrix_Heating_2026.pdf#page=1 diff --git a/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/northern_electric_providers.yaml b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/northern_electric_providers.yaml new file mode 100644 index 00000000000..b7096160597 --- /dev/null +++ b/policyengine_us/parameters/gov/states/id/dhw/liheap/payment/northern_electric_providers.yaml @@ -0,0 +1,32 @@ +description: Idaho groups these electricity providers in the northern utilities column under the Low Income Home Energy Assistance Program. +# The FY2026 chart names the Avista and Northern Utilities column. Its named +# membership is recovered from Appendix C's historical heating-cost matrix. +# Current state and utility directories confirm these companies' identities, +# while current LIHEAP group membership remains a documented historical proxy. +# The Appendix C footnote also names Lamb Creek Trailer Park. It is left out +# because its current utility identity was not established, so such a +# household reports OTHER and uses the Idaho Power & Southern Utilities column. +values: + 2025-10-01: + - AVISTA + - BONNERS_FERRY_LIGHT_AND_WATER + - CLEARWATER_POWER + - IDAHO_COUNTY_LIGHT_AND_POWER + - INLAND_POWER_AND_LIGHT + - KOOTENAI_ELECTRIC + - NORTHERN_LIGHTS + - PLUMMER_ELECTRIC + +metadata: + unit: list + period: year + label: Idaho LIHEAP named northern electric utility group + reference: + - title: Idaho PY26 LIHEAP Benefit Determination Chart + href: https://liheapch.acf.gov/docs/2026/benefits-matricies/ID_BenefitMatrix_Heating_2026.pdf#page=1 + - title: Historical Idaho LIHEAP Intake Manual, Appendix C, northern utility membership + href: https://web.archive.org/web/20170127123014id_/http://www.healthandwelfare.idaho.gov/Portals/_Rainbow/Manuals/LIHEAP/Appendices/c_htgcost_matrix_PY07.pdf#page=1 + - title: Idaho Office of Energy and Mineral Resources utility directory + href: https://oemr.idaho.gov/utilities/ + - title: Inland Power and Light, northern Idaho service + href: https://www.inlandpower.com/ diff --git a/policyengine_us/tests/policy/baseline/gov/states/id/dhw/liheap/id_liheap.yaml b/policyengine_us/tests/policy/baseline/gov/states/id/dhw/liheap/id_liheap.yaml index 122e2536bc4..5c8f2703cbb 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/id/dhw/liheap/id_liheap.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/id/dhw/liheap/id_liheap.yaml @@ -323,3 +323,174 @@ id_aabd: 636 id_liheap_countable_income: 12_564 id_liheap: 367 + +- name: Case 15, named Avista electric provider selects each published burden and area cell. + period: 2026 + absolute_error_margin: 0.01 + # FY2026 chart, Avista and Northern Utilities column, with the PY2007 northern electric costs. + # Nez Perce County is Area I (cost 1_450) and Kootenai County Area II (cost 1_585). + # Income 40_000 is low (3.63%, 3.96%), 20_000 medium (7.25%, 7.93%), 4_000 high (36.25%, 39.63%). + input: + state_code: [ID, ID, ID, ID, ID, ID] + county: [NEZ_PERCE_COUNTY_ID, NEZ_PERCE_COUNTY_ID, NEZ_PERCE_COUNTY_ID, + KOOTENAI_COUNTY_ID, KOOTENAI_COUNTY_ID, KOOTENAI_COUNTY_ID] + heating_type: [ELECTRICITY, ELECTRICITY, ELECTRICITY, + ELECTRICITY, ELECTRICITY, ELECTRICITY] + id_liheap_electricity_provider: [AVISTA, AVISTA, AVISTA, + AVISTA, AVISTA, AVISTA] + id_liheap_countable_income: [40_000, 20_000, 4_000, + 40_000, 20_000, 4_000] + id_liheap_income_eligible: [true, true, true, true, true, true] + has_heating_expense: [true, true, true, true, true, true] + output: + id_liheap: [322, 335, 348, + 371, 387, 402] + +- name: Case 16, named Rocky Mountain Power electric provider selects each published burden and area cell. + period: 2026 + absolute_error_margin: 0.01 + # FY2026 chart, Rocky Mountain Power column, with the PY2007 costs from the Utah Power & Light column. + # Franklin County is Area II (cost 1_692) and Bear Lake County Area III (cost 1_836). + # Income 40_000 is low (4.23%, 4.59%), 20_000 medium (8.46%, 9.18%), 4_000 high (42.3%, 45.9%). + input: + state_code: [ID, ID, ID, ID, ID, ID] + county: [FRANKLIN_COUNTY_ID, FRANKLIN_COUNTY_ID, FRANKLIN_COUNTY_ID, + BEAR_LAKE_COUNTY_ID, BEAR_LAKE_COUNTY_ID, BEAR_LAKE_COUNTY_ID] + heating_type: [ELECTRICITY, ELECTRICITY, ELECTRICITY, + ELECTRICITY, ELECTRICITY, ELECTRICITY] + id_liheap_electricity_provider: [ROCKY_MOUNTAIN_POWER, ROCKY_MOUNTAIN_POWER, ROCKY_MOUNTAIN_POWER, + ROCKY_MOUNTAIN_POWER, ROCKY_MOUNTAIN_POWER, ROCKY_MOUNTAIN_POWER] + id_liheap_countable_income: [40_000, 20_000, 4_000, + 40_000, 20_000, 4_000] + id_liheap_income_eligible: [true, true, true, true, true, true] + has_heating_expense: [true, true, true, true, true, true] + output: + id_liheap: [407, 424, 441, + 461, 481, 500] + +- name: Case 17, named Avista gas provider selects each published burden and area cell. + period: 2026 + absolute_error_margin: 0.01 + # FY2026 chart, Avista gas column, with the PY2007 Avista gas costs. + # Nez Perce County is Area I (cost 875) and Kootenai County Area II (cost 1_200). + # Income 40_000 is low (2.19%, 3%), 14_000 medium (6.25%, 8.57%), 4_000 high (21.88%, 30%). + input: + state_code: [ID, ID, ID, ID, ID, ID] + county: [NEZ_PERCE_COUNTY_ID, NEZ_PERCE_COUNTY_ID, NEZ_PERCE_COUNTY_ID, + KOOTENAI_COUNTY_ID, KOOTENAI_COUNTY_ID, KOOTENAI_COUNTY_ID] + heating_type: [NATURAL_GAS, NATURAL_GAS, NATURAL_GAS, + NATURAL_GAS, NATURAL_GAS, NATURAL_GAS] + id_liheap_natural_gas_provider: [AVISTA, AVISTA, AVISTA, + AVISTA, AVISTA, AVISTA] + id_liheap_countable_income: [40_000, 14_000, 4_000, + 40_000, 14_000, 4_000] + id_liheap_income_eligible: [true, true, true, true, true, true] + has_heating_expense: [true, true, true, true, true, true] + output: + id_liheap: [168, 176, 183, + 194, 203, 211] + +- name: Case 18, provider-specific cost changes the burden group before the benefit lookup. + period: 2026 + absolute_error_margin: 0.01 + # Area I at income 24_000. Idaho Power in Ada County: 1_335 / 24_000 = 5.56% is low, 328. + # Avista in Nez Perce County: 1_450 / 24_000 = 6.04% is medium, 335. + input: + state_code: [ID, ID] + county: [ADA_COUNTY_ID, NEZ_PERCE_COUNTY_ID] + heating_type: [ELECTRICITY, ELECTRICITY] + id_liheap_electricity_provider: [IDAHO_POWER, AVISTA] + id_liheap_countable_income: [24_000, 24_000] + id_liheap_income_eligible: [true, true] + has_heating_expense: [true, true] + output: + id_liheap_estimated_heating_cost: [1_335, 1_450] + id_liheap: [328, 335] + +- name: Case 19, unpublished provider area combinations retain the documented representative estimate. + period: 2026 + absolute_error_margin: 0.01 + # The chart prints no amount for Rocky Mountain Power in Area I or for Avista in Area III. + # These rows pay the Idaho Power or Intermountain Gas column as a fallback estimate, not a published award. + # Income 4_000 is high. Ada electric 1_335 pays 355; Bear Lake electric 1_605 pays 464; Bear Lake gas 1_207 pays 173. + input: + state_code: [ID, ID, ID] + county: [ADA_COUNTY_ID, BEAR_LAKE_COUNTY_ID, BEAR_LAKE_COUNTY_ID] + heating_type: [ELECTRICITY, ELECTRICITY, NATURAL_GAS] + id_liheap_electricity_provider: [ROCKY_MOUNTAIN_POWER, AVISTA, UNSPECIFIED] + id_liheap_natural_gas_provider: [UNSPECIFIED, UNSPECIFIED, AVISTA] + id_liheap_countable_income: [4_000, 4_000, 4_000] + id_liheap_income_eligible: [true, true, true] + has_heating_expense: [true, true, true] + output: + id_liheap_estimated_heating_cost: [1_335, 1_605, 1_207] + id_liheap: [355, 464, 173] + +- name: Case 20, named northern municipal and cooperative companies use the northern award and cost columns. + period: 2026 + absolute_error_margin: 0.01 + # FY2026 chart's northern electric column with the historical Appendix C membership. + # The current OEMR directory and Inland Power's site confirm the company identities. + # Income 4_000 is high. Northern cost 1_585 pays 402 in Area II; Nez Perce County is Area I, 1_450 and 348. + # Other and unspecified companies in Bannock County keep the Idaho Power cost 1_455 and 410. + input: + state_code: [ID, ID, ID, ID, ID, ID, ID, ID, ID] + county: [BOUNDARY_COUNTY_ID, NEZ_PERCE_COUNTY_ID, IDAHO_COUNTY_ID, + KOOTENAI_COUNTY_ID, KOOTENAI_COUNTY_ID, BONNER_COUNTY_ID, + BENEWAH_COUNTY_ID, BANNOCK_COUNTY_ID, BANNOCK_COUNTY_ID] + heating_type: [ELECTRICITY, ELECTRICITY, ELECTRICITY, + ELECTRICITY, ELECTRICITY, ELECTRICITY, + ELECTRICITY, ELECTRICITY, ELECTRICITY] + id_liheap_electricity_provider: [BONNERS_FERRY_LIGHT_AND_WATER, CLEARWATER_POWER, IDAHO_COUNTY_LIGHT_AND_POWER, + INLAND_POWER_AND_LIGHT, KOOTENAI_ELECTRIC, NORTHERN_LIGHTS, + PLUMMER_ELECTRIC, OTHER, UNSPECIFIED] + id_liheap_countable_income: [4_000, 4_000, 4_000, + 4_000, 4_000, 4_000, + 4_000, 4_000, 4_000] + id_liheap_income_eligible: [true, true, true, true, true, true, true, true, true] + has_heating_expense: [true, true, true, true, true, true, true, true, true] + output: + id_liheap_estimated_heating_cost: [1_585, 1_450, 1_585, + 1_585, 1_585, 1_585, + 1_585, 1_455, 1_455] + id_liheap: [402, 348, 402, + 402, 402, 402, + 402, 410, 410] + +- name: Case 21, Intermountain Gas and an unlisted gas company pay the Intermountain Gas column. + period: 2026 + absolute_error_margin: 0.01 + # Income 12_000 is medium. Intermountain Gas in Ada County (Area I): 977 / 12_000 = 8.14%, 127. + # An unlisted gas company in Franklin County (Area II): 1_100 / 12_000 = 9.17%, 147. + # The Avista gas column would cost 875 and 1_200 and pay 176 and 203. + input: + state_code: [ID, ID] + county: [ADA_COUNTY_ID, FRANKLIN_COUNTY_ID] + heating_type: [NATURAL_GAS, NATURAL_GAS] + id_liheap_natural_gas_provider: [INTERMOUNTAIN_GAS, OTHER] + id_liheap_countable_income: [12_000, 12_000] + id_liheap_income_eligible: [true, true] + has_heating_expense: [true, true] + output: + id_liheap_estimated_heating_cost: [977, 1_100] + id_liheap: [127, 147] + +- name: Case 22, the gas company alone selects the gas column of a gas-heated household with Avista electricity. + period: 2026 + absolute_error_margin: 0.01 + # Nez Perce County is Area I. Both households buy electricity from Avista and heat with gas; income 4_000 is high. + # Avista gas: 875 / 4_000 = 21.88%, 183. Unreported gas company: Intermountain Gas column, 977 / 4_000 = 24.4%, 132. + # The electric company does not reach the gas branch: it does not pay the northern electric column + # (cost 1_450, 348) and does not select the Avista gas column in the second row. + input: + state_code: [ID, ID] + county: [NEZ_PERCE_COUNTY_ID, NEZ_PERCE_COUNTY_ID] + heating_type: [NATURAL_GAS, NATURAL_GAS] + id_liheap_electricity_provider: [AVISTA, AVISTA] + id_liheap_natural_gas_provider: [AVISTA, UNSPECIFIED] + id_liheap_countable_income: [4_000, 4_000] + id_liheap_income_eligible: [true, true] + has_heating_expense: [true, true] + output: + id_liheap_estimated_heating_cost: [875, 977] + id_liheap: [183, 132] diff --git a/policyengine_us/tests/policy/baseline/gov/states/id/dhw/liheap/id_liheap_estimated_heating_cost.yaml b/policyengine_us/tests/policy/baseline/gov/states/id/dhw/liheap/id_liheap_estimated_heating_cost.yaml index a71cdf164e0..0ddf2a7b81b 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/id/dhw/liheap/id_liheap_estimated_heating_cost.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/id/dhw/liheap/id_liheap_estimated_heating_cost.yaml @@ -2,8 +2,14 @@ # https://web.archive.org/web/20170127123014id_/http://www.healthandwelfare.idaho.gov/Portals/_Rainbow/Manuals/LIHEAP/Appendices/c_htgcost_matrix_PY07.pdf#page=1 # PY2007 estimated nine-month costs are used as a modeling assumption; # their current FY2026 applicability is unconfirmed. No inflation or 12/9 scaling. -# Electricity uses Idaho Power & Southern Utilities. Natural gas uses the -# Intermountain column as a modeling simplification, without a provider input. +# The electricity and natural gas provider inputs select the cost column. +# Electricity: Avista and the named northern utilities use the Northern +# Utilities column in Areas I and II (1_450, 1_585). Rocky Mountain Power uses +# the Utah Power & Light column in Areas II and III (1_692, 1_836). Any other +# or unreported company, and a named company outside those areas, uses +# Idaho Power & Southern Utilities. +# Natural gas: Avista uses its own column in Areas I and II (875, 1_200). Any +# other or unreported company, and Avista in Area III, uses Intermountain. - name: Case 1, six supported fuels use the historical costs in all three areas. period: 2026 @@ -72,3 +78,34 @@ heating_type: [SOLAR, KEROSENE] output: id_liheap_estimated_heating_cost: [1_335, 1_625] + +- name: Case 6, named providers use their own cost columns and an unstored company and area pair falls back. + period: 2026 + absolute_error_margin: 0.01 + # Avista electric: Nez Perce County (Area I) 1_450, Kootenai County (Area II) 1_585. + # Rocky Mountain Power: Franklin County (Area II) 1_692, Bear Lake County (Area III) 1_836. + # Avista gas: Nez Perce County 875, Kootenai County 1_200. + # Rocky Mountain Power has no stored Area I cost, so Ada County keeps the Idaho Power 1_335. + input: + state_code: [ID, ID, ID, ID, ID, ID, ID] + county: [NEZ_PERCE_COUNTY_ID, KOOTENAI_COUNTY_ID, + FRANKLIN_COUNTY_ID, BEAR_LAKE_COUNTY_ID, + NEZ_PERCE_COUNTY_ID, KOOTENAI_COUNTY_ID, + ADA_COUNTY_ID] + heating_type: [ELECTRICITY, ELECTRICITY, + ELECTRICITY, ELECTRICITY, + NATURAL_GAS, NATURAL_GAS, + ELECTRICITY] + id_liheap_electricity_provider: [AVISTA, AVISTA, + ROCKY_MOUNTAIN_POWER, ROCKY_MOUNTAIN_POWER, + UNSPECIFIED, UNSPECIFIED, + ROCKY_MOUNTAIN_POWER] + id_liheap_natural_gas_provider: [UNSPECIFIED, UNSPECIFIED, + UNSPECIFIED, UNSPECIFIED, + AVISTA, AVISTA, + UNSPECIFIED] + output: + id_liheap_estimated_heating_cost: [1_450, 1_585, + 1_692, 1_836, + 875, 1_200, + 1_335] diff --git a/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap.py b/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap.py index 06e83a89f2c..44e143b0300 100644 --- a/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap.py +++ b/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap.py @@ -31,6 +31,32 @@ def formula(spm_unit, period, parameters): area = clip(spm_unit("id_liheap_heating_area", period), 1, 3) heating = spm_unit("heating_type", period) types = heating.possible_values + electric_provider = spm_unit("id_liheap_electricity_provider", period) + gas_provider = spm_unit("id_liheap_natural_gas_provider", period) + electric_providers = electric_provider.possible_values + # The chart leaves Avista Area III and Rocky Mountain Area I blank. + # Retain the representative-column estimate for unpublished area + # combinations, unspecified companies and unlisted smaller utilities. + northern_electric = np.isin( + electric_provider.decode_to_str(), p.northern_electric_providers + ) & (area < 3) + rocky_mountain = ( + electric_provider == electric_providers.ROCKY_MOUNTAIN_POWER + ) & (area > 1) + electric_amount = select( + [northern_electric, rocky_mountain], + [ + p.matrix.electricity_northern[min_(area, 2)][burden_group], + p.matrix.electricity_rocky_mountain[max_(area, 2)][burden_group], + ], + default=p.matrix.electricity[area][burden_group], + ) + avista_gas = (gas_provider == gas_provider.possible_values.AVISTA) & (area < 3) + gas_amount = where( + avista_gas, + p.matrix.natural_gas_avista[min_(area, 2)][burden_group], + p.matrix.natural_gas[area][burden_group], + ) chart_amount = select( [ (heating == types.ELECTRICITY) | (heating == types.SOLAR), @@ -41,8 +67,8 @@ def formula(spm_unit, period, parameters): (heating == types.COAL) | (heating == types.WOOD), ], [ - p.matrix.electricity[area][burden_group], - p.matrix.natural_gas[area][burden_group], + electric_amount, + gas_amount, p.matrix.oil_or_propane[area][burden_group], p.matrix.coal_or_wood[area][burden_group], ], diff --git a/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap_electricity_provider.py b/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap_electricity_provider.py new file mode 100644 index 00000000000..d16187f9937 --- /dev/null +++ b/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap_electricity_provider.py @@ -0,0 +1,37 @@ +from policyengine_us.model_api import * + + +class IDLIHEAPElectricityProvider(Enum): + # The electric company named on the bill. It selects the electric column + # of the heating matrix and the estimated heating costs: Idaho Power and + # southern utilities, Avista and northern utilities, or Rocky Mountain + # Power. + IDAHO_POWER = "Idaho Power" + AVISTA = "Avista" + BONNERS_FERRY_LIGHT_AND_WATER = "Bonners Ferry Light and Water" + CLEARWATER_POWER = "Clearwater Power" + IDAHO_COUNTY_LIGHT_AND_POWER = "Idaho County Light and Power" + INLAND_POWER_AND_LIGHT = "Inland Power and Light" + KOOTENAI_ELECTRIC = "Kootenai Electric Cooperative" + NORTHERN_LIGHTS = "Northern Lights Incorporated" + PLUMMER_ELECTRIC = "Plummer Electric Department" + ROCKY_MOUNTAIN_POWER = "Rocky Mountain Power" + # A reported company outside the listed choices, or a company that was + # not reported. Both use the Idaho Power and southern utilities column. + OTHER = "Other electricity provider" + UNSPECIFIED = "Unspecified" + + +class id_liheap_electricity_provider(Variable): + value_type = Enum + entity = SPMUnit + possible_values = IDLIHEAPElectricityProvider + default_value = IDLIHEAPElectricityProvider.UNSPECIFIED + definition_period = YEAR + label = "Idaho LIHEAP electricity provider" + defined_for = StateCode.ID + reference = ( + "https://liheapch.acf.gov/docs/2026/benefits-matricies/ID_BenefitMatrix_Heating_2026.pdf#page=1", + "https://web.archive.org/web/20170127123014id_/http://www.healthandwelfare.idaho.gov/Portals/_Rainbow/Manuals/LIHEAP/Appendices/c_htgcost_matrix_PY07.pdf#page=1", + "https://oemr.idaho.gov/utilities/", + ) diff --git a/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap_estimated_heating_cost.py b/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap_estimated_heating_cost.py index 5e3443a285a..907dc032191 100644 --- a/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap_estimated_heating_cost.py +++ b/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap_estimated_heating_cost.py @@ -14,12 +14,38 @@ def formula(spm_unit, period, parameters): area = spm_unit("id_liheap_heating_area", period) heating = spm_unit("heating_type", period) types = heating.possible_values - p = parameters(period).gov.states.id.dhw.liheap.payment.estimated_heating_costs + payment = parameters(period).gov.states.id.dhw.liheap.payment + p = payment.estimated_heating_costs # PY2007 nine-month cost proxy; FY2026 applicability is unconfirmed. # Safe lookup leaves unknown areas unassigned after fuel selection. # No Idaho source names solar or kerosene. As in heating_expense, solar # reads as electric and kerosene as the chart's oil. lookup_area = clip(area, 1, 3) + electric_provider = spm_unit("id_liheap_electricity_provider", period) + gas_provider = spm_unit("id_liheap_natural_gas_provider", period) + electric_providers = electric_provider.possible_values + northern_electric = np.isin( + electric_provider.decode_to_str(), payment.northern_electric_providers + ) + # As with the payment chart, blank historical combinations retain + # the existing representative estimate instead of asserting zero cost. + electric_cost = select( + [ + northern_electric & (area < 3), + (electric_provider == electric_providers.ROCKY_MOUNTAIN_POWER) + & (area > 1), + ], + [ + p.electricity_northern[min_(lookup_area, 2)], + p.electricity_rocky_mountain[max_(lookup_area, 2)], + ], + default=p.electricity[lookup_area], + ) + gas_cost = where( + (gas_provider == gas_provider.possible_values.AVISTA) & (area < 3), + p.natural_gas_avista[min_(lookup_area, 2)], + p.natural_gas[lookup_area], + ) cost = select( [ (heating == types.ELECTRICITY) | (heating == types.SOLAR), @@ -30,8 +56,8 @@ def formula(spm_unit, period, parameters): (heating == types.COAL) | (heating == types.WOOD), ], [ - p.electricity[lookup_area], - p.natural_gas[lookup_area], + electric_cost, + gas_cost, p.oil_or_propane[lookup_area], p.coal_or_wood[lookup_area], ], diff --git a/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap_natural_gas_provider.py b/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap_natural_gas_provider.py new file mode 100644 index 00000000000..6c61b01ad05 --- /dev/null +++ b/policyengine_us/variables/gov/states/id/dhw/liheap/id_liheap_natural_gas_provider.py @@ -0,0 +1,27 @@ +from policyengine_us.model_api import * + + +class IDLIHEAPNaturalGasProvider(Enum): + # The natural gas company named on the bill. It selects the Intermountain + # Gas or Avista column of the heating matrix and the estimated heating + # costs. + INTERMOUNTAIN_GAS = "Intermountain Gas" + AVISTA = "Avista" + # A reported company outside the listed choices, or a company that was + # not reported. Both use the Intermountain Gas column. + OTHER = "Other natural gas provider" + UNSPECIFIED = "Unspecified" + + +class id_liheap_natural_gas_provider(Variable): + value_type = Enum + entity = SPMUnit + possible_values = IDLIHEAPNaturalGasProvider + default_value = IDLIHEAPNaturalGasProvider.UNSPECIFIED + definition_period = YEAR + label = "Idaho LIHEAP natural gas provider" + defined_for = StateCode.ID + reference = ( + "https://liheapch.acf.gov/docs/2026/benefits-matricies/ID_BenefitMatrix_Heating_2026.pdf#page=1", + "https://web.archive.org/web/20170127123014id_/http://www.healthandwelfare.idaho.gov/Portals/_Rainbow/Manuals/LIHEAP/Appendices/c_htgcost_matrix_PY07.pdf#page=1", + )