-
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.
Add Local Housing Allowance parameters (#787)
* Add missing label for benefit uprating index * Add LHA * Add BRMA imputation * Address comments * Add to README.md * Fix test failures * Comment out label test for now * Remove old LHA parameter tree
- Loading branch information
1 parent
dbf5a73
commit 2f9e7f3
Showing
18 changed files
with
394 additions
and
5,617 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- bump: patch | ||
changes: | ||
fixed: | ||
- Added missing label for benefit uprating. |
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,11 @@ | ||
# Data | ||
|
||
This folder contains data files used in policy computations that are too granular for YAML parameters to be efficient. | ||
|
||
## brma_to_region.csv.gz | ||
|
||
This mapping file is used to convert BRMA codes to region codes. It was created by GPT-4 (20 randomly checked and all correct) for English BRMAs; Scottish, Welsh and Northern Ireland BRMAs were added manually. | ||
|
||
## local_housing_allowance_list_of_rents.csv.gz | ||
|
||
This file contains the list of rents used to determine LHA rates. English BRMAs for 2019 and 2020 are from the Valuation Office Agency [here](https://www.gov.uk/government/collections/local-housing-allowance-list-of-rents). Scottish, Welsh and Northern Ireland BRMAs are matched from the closest English BRMA. |
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,17 @@ | ||
import pandas as pd | ||
from pathlib import Path | ||
|
||
FOLDER = Path(__file__).parent | ||
|
||
lha_list_of_rents = pd.read_csv( | ||
FOLDER / "local_housing_allowance_list_of_rents.csv.gz", | ||
compression="gzip", | ||
) | ||
|
||
brma_to_region = pd.read_csv( | ||
FOLDER / "brma_to_region.csv.gz", compression="gzip" | ||
) | ||
|
||
enhanced_frs_brmas = pd.read_csv( | ||
FOLDER / "enhanced_frs_brmas.csv.gz", compression="gzip" | ||
) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
description: While this parameter is true, LHA rates are frozen in cash terms. | ||
values: | ||
2015-01-01: false | ||
2020-01-01: true | ||
2024-01-01: false | ||
metadata: | ||
unit: bool | ||
label: LHA freeze |
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: Local Housing Allowance rates are set at this percentile of private rents in the family's Broad Rental Market Area. This parameter does not apply if LHA is frozen. | ||
values: | ||
2015-01-01: 0.3 | ||
metadata: | ||
unit: /1 | ||
label: LHA percentile |
Oops, something went wrong.